Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Javascript
defining functions
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="J.R., post: 5012326"] No, it is not. The book's author explains the term "hoisting" on page 15: "[...] For completeness, let’s mention that actually at the implementation level things are a little more complex. There are two stages of the code handling, where variables, function declarations, and formal parameters are created at the first stage, which is the stage of parsing and entering the context. In the second stage, the stage of runtime code execution, function expressions and unqualified identifiers (undeclared variables) are created. But for practical purposes, we can adopt the concept of hoisting, which is actually not defined by ECMAScript standard but is commonly used to describe the behavior." If you google for "variable hoisting +javascript", you'll see that the term has been used by some renowned JS developers (Kangax, Nicholas Zakas, Stoyan Stefanov, Dustin Diaz, Dmitry Soshnikov, etc.) as a simplification of the ECMAScript Language Specification. I stand my point: this is an excellent book, although there are some minor errors / typos in it the same way it happens to other excellent / good books. And praising a book / author has nothing to do with blind faith. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Javascript
defining functions
Top