This note summarizes the first seven chapters of the book, which the authors consider the "advanced programming of JavaScript", for informational purposes only.
Introduction to JavaScript in the first chapter
A brief history of JavaScript development:
- 1995, JavaScript was born
- Published in 1997 by the 39th Technical Committee designated by the European Computer Manufacturing Association (Ecma,european Computer Manufactures association), the ECMAScript scripting language standard
- 1998, ISO/IEC adopted the ECMA standard
The relationship between JavaScript and ECMAScript:
The ECMAScript defined by ECMA-262 does not have a dependency on the Web browser, and the language does not include the input and output definitions. ECMA-262 defines only the basis of this language, and Web browsers are just one of the possible hosting environments for ECMAScript implementations. The hosting environment not only provides a basic ECMAScript implementation, but also provides an extension of the language for the interface between the language and the environment. These extensions, such as DOM, use the core type and syntax of ECMAScript to provide more specific functionality to enable operations against the environment. Other hosting environments include node (a server-side JavaScript platform) and Adobe Flash.
ECMA-262 the language component of the provisions:
- Grammar
- Type
- Statement
- Key words
- Reserved words
- Operator
- Object
The complete JAVASCIRPT implementation:
- Core (ECMAScript), defined by ECMA-262, provides core language functions;
- Document Object Model (DOM), which provides methods and interfaces for accessing and manipulating Web page content;
- A Browser object model (BOM) that provides methods and interfaces for interacting with the browser.
The three components of JavaScript are supported in varying degrees in the current five major browsers (IE, Firefox, Chrome, Safari, and Opera). Of these, all browsers support ECMAScript version 3rd is generally good, while the support for ECMASCRIPT5 is increasing, but the support for Dom is quite different from each other. For BOMs that have been formally incorporated into the HTML5 standard, other features may vary by browser, although each browser implements some well-known common features.
JavaScript Advanced Programming (reading notes) (i)