This page contains material related to the JavaScript language. For a broader overview of related technologies see HTML5 page. Learn JavaScriptJavascript, 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 JavaScriptSince Advanced JavaScript (link) by Douglas Crockford videos are not available, here are some newer ones at Yahoo's (YUI) JS-related video library (link).
TipsCreating 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).
CDNVarious libraries are hosted at content delivery networks:
Closures
Debuggingconsole.log()JSONJSON: The Fat-Free Alternative to XML (link) ObjectsDetails of the object model (link), from Mozilla Foundation. Patterns
PrimitivesThe Secret Life of JavaScript Primitives (link) VariablesJS Variables, W3C Schools (link) |