Page 42 - JavaScript
P. 42
Chapter 102: WeakSet 557
Syntax 557
Remarks 557
Examples 557
Creating a WeakSet object 557
Adding a value 557
Checking if a value exists 557
Removing a value 558
Chapter 103: Web Cryptography API 559
Remarks 559
Examples 559
Cryptographically random data 559
Creating digests (e.g. SHA-256) 559
Generating RSA key pair and converting to PEM format 560
Converting PEM key pair to CryptoKey 561
Chapter 104: Web Storage 563
Syntax 563
Parameters 563
Remarks 563
Examples 563
Using localStorage 563
localStorage limits in browsers 564
Storage events 564
Notes 565
sessionStorage 565
Clearing storage 566
Error conditions 566
Remove Storage Item 566
Simpler way of handling Storage 567
localStorage length 567
Chapter 105: WebSockets 569
Introduction 569

