Page 28 - JavaScript
P. 28
Examples 370
Method Chaining 370
Chainable object design and chaining 370
Object designed to be chainable 371
Chaining example 371
Don't create ambiguity in the return type 371
Syntax convention 372
A bad syntax 372
Left hand side of assignment 373
Summary 373
Chapter 65: Modals - Prompts 374
Syntax 374
Remarks 374
Examples 374
About User Prompts 374
Persistent Prompt Modal 375
Confirm to Delete element 375
Usage of alert() 376
Usage of prompt() 377
Chapter 66: Modularization Techniques 378
Examples 378
Universal Module Definition (UMD) 378
Immediately invoked function expressions (IIFE) 378
Asynchronous Module Definition (AMD) 379
CommonJS - Node.js 380
ES6 Modules 380
Using Modules 381
Chapter 67: Modules 382
Syntax 382
Remarks 382
Examples 382
Default exports 382

