JavaScript
This page contains material related to the JavaScript language. For a broader overview of related technologies see HTML5 page.
Learn JavaScript
Javascript, The Core (link) is a great introduction to JavaScript language.
Good reference material is available from W3C Schools' JS Home (link).
Google's style code (link).
Learning Advanced JavaScript (link).
JavaScript "classes": 3 ways to define a JavaScript class (link).
Yahoo's (YUI) JS-related video library (link).
Advanced JavaScript
Since Advanced JavaScript (link) by Douglas Crockford videos are not available, here are some newer ones at
Yahoo's (YUI) JS-related video library (link).
Tips
Creating an object definition, closest to defining a class since the concept of a class does not exist in JS:
myClass.prototype = {
myProperty:”this is a string”,
myMethod:function(parms){
//method logic here
}
}
var instance = new myClass();
There are other ways, too, but the above method minimizes memory usage as it reuses the object definition for every new object created.
Try out JavaScript online - JSFiddle (link).
- Constructors (link)
CDN
Various libraries are hosted at content delivery networks:
- Microsoft (link)
Closures
Debugging
console.log()
JSON
JSON: The Fat-Free Alternative to XML (link)
Objects
Details of the object model (link), from Mozilla Foundation.
Patterns
- Essential JS patterns (link)
Primitives
The Secret Life of JavaScript Primitives (link)
Variables
JS Variables, W3C Schools (link)