Page 24 - JavaScript
P. 24
history.pushState() 321
Load a specific URL from the history list 321
Chapter 53: How to make iterator usable inside async callback function 323
Introduction 323
Examples 323
Erroneous code, can you spot why this usage of key will lead to bugs? 323
Correct Writing 323
Chapter 54: IndexedDB 325
Remarks 325
Transactions 325
Examples 325
Testing for IndexedDB availability 325
Opening a database 325
Adding objects 326
Retrieving data 327
Chapter 55: Inheritance 328
Examples 328
Standard function prototype 328
Difference between Object.key and Object.prototype.key 328
New object from prototype 328
Prototypal inheritance 329
Pseudo-classical inheritance 331
Setting an Object's prototype 332
Chapter 56: Intervals and Timeouts 334
Syntax 334
Remarks 334
Examples 334
Intervals 334
Removing intervals 334
Removing timeouts 335
Recursive setTimeout 335
setTimeout, order of operations, clearTimeout 336

