Readings
Severance, C. (2012). JavaScript: Designing a language in 10 days. Computer, (2), 7-8. (ncsu)
Andreessen, M. 1998. TechVision: Innovators of the Net: Brendan Eich and JavaScript". web.archive.org. Archived from the original on 2008-02-08.
References
Mozilla's
Generalities
Statements end with semicolons
Built in functions
Universal ones work everywhere that js does
Others (like alert) are browser specific
Dynamically typed
Comments
After //
Between /* */
Arrays
Declaring
Literal: = [1,2,3];
Empty: = [];
Call: = new Array(1,2,3);
Access: myarray[0];
Getting length: myarray.length
Adding
to end:
myarray[myarray.length] = 'new item';
myarray.push('new item 1','new item 2');
to beginning: myarray.unshift('new item');
Removing
From end: pop();
From beginning: shift();
Loops, ifs, scoping
Very familiar to programmers