-
Notifications
You must be signed in to change notification settings - Fork 0
JavaScript
svicalifornia edited this page Nov 22, 2014
·
7 revisions
JavaScript: The Good Parts by Douglas Crockford is one of the best resources to learn about the many problems with JavaScript and how you can make good use of this language. Everyone should watch the video below, and the book is also an entertaining and quick read and lasting reference.
Video (Presented by Crockford at Google)
Crockford's JavaScript Web Site
Always use the var keyword when first using any variable. Variables used without var are defined as global variables, and un-namespaced global variables are bad.
Use === and !== instead of == and !=. The latter operators do not perform type-checking in JavaScript and can easily lead to errors.