Jason Jeffries

24%
Flag icon
In many modern languages, it is recommended that variables be declared as late as possible, at the first point of use. That turns out to be bad advice for JavaScript because it lacks block scope. So instead, it is best to declare all of the variables used in a function at the top of the function body.
JavaScript: The Good Parts: The Good Parts
Rate this book
Clear rating
Open Preview