Page 33 - JavaScript
P. 33
Split with RegExp 447
Search with RegExp 447
Replacing string match with a callback function 447
RegExp Groups 448
Capture 448
Non-Capture 448
Look-Ahead 449
Using Regex.exec() with parentheses regex to extract matches of a string 449
Chapter 77: requestAnimationFrame 451
Syntax 451
Parameters 451
Remarks 451
Examples 452
Use requestAnimationFrame to fade in element 452
Cancelling an Animation 453
Keeping Compatability 454
Chapter 78: Reserved Keywords 455
Introduction 455
Examples 455
Reserved Keywords 455
JavaScript has a predefined collection of reserved keywords which you cannot use as variab 455
ECMAScript 1 455
ECMAScript 2 455
ECMAScript 5 / 5.1 456
ECMAScript 6 / ECMAScript 2015 457
Identifiers & Identifier Names 458
Chapter 79: Same Origin Policy & Cross-Origin Communication 461
Introduction 461
Examples 461
Ways to circumvent Same-Origin Policy 461
Method 1: CORS 461

