Lecture
In this section we will get acquainted with reference books and specifications.
If you are just starting to learn, they are unlikely to be needed right now. In this case, take note of this page, later they will be useful to you.
The most complete and detailed information on JavaScript and browsers is in reference books.
Its volume is such that it is impossible to translate everything from English. It is not even possible to make a “single complete reference book”, since there are many changes and they are constantly occurring.
Nevertheless, it is quite possible to live if you know where to look.
There are three basic javascript references in English :
When I need to quickly find “standard” information on RegExp
- I enter “RegExp MDC” into Google, and the keyword “MDC” (Mozilla Developer Center) leads to information from this directory.
For example, for information about the features of RegExp
in IE - a useful combination: "RegExp msdn" . Sometimes it is better to add the term “JScript” to the search phrase: “RegExp msdn jscript” .
There are also reference books, not from browser developers, but also good ones:
The specification is the most important, defining document in which it is written how JavaScript behaves, browser, CSS, etc.
If something is not clear, and the directory does not give an answer, the specification, as a rule, reveals the topic much deeper and allows you to dot the i.
The specification (a formal description of the syntax, basic objects and algorithms) of the Javascript language is called ECMAScript.
Her translation is on the website in the standard language section.
You may ask: “Why is the JavaScript specification not just called “ JavaScript ” , why is there a separate name?”
That's because JavaScript ™ is a registered trademark owned by Oracle Corporation.
The name “ECMAScript” was chosen to keep the specification independent of the trademark owners.
The specification can tell a lot about how a language works, and is the most fundamental, trusted source of information.
We live in a time when things change quickly. The modern standard is ECMA-262 5.1 (or just ES5), supported by all modern browsers.
The new specification of ES6 is just around the corner, with many more useful features that make development faster and more fun.
JavaScript is a general purpose language, so there is not a word about browsers in the ECMAScript specification.
Relevant information can be found on w3.org. There are standards for HTML, CSS and many others.
Unfortunately, finding what you need in this pile may not be easy, especially when it is not known which standard to look for. The best way is to ask Google for the site.
For example, to search document.cookie
type document.cookie site: w3.org.
The latest standards are located on the domain dev.w3.org.
So, let's see what we have sources of information.
Directories:
"RegExp MDC"
, the keyword "MDC". "RegExp msdn"
. Sometimes it is better to add the term "JScript": "RegExp msdn jscript"
. "RegExp dottoro"
. "RegExp site:javascript.ru"
. Specifications contain crucial information about how it “should work”:
"document.cookie site:w3.org"
. The way it actually works and incompatibilities:
"innerHeight quirksmode"
.
Comments
To leave a comment
Scripting client side JavaScript, jqvery, BackBone
Terms: Scripting client side JavaScript, jqvery, BackBone