Web
Programming

Fall 2012
course
navigation

Sep 27

aside

Discuss why this is a standard part of Javascript
$ node > 'a' in {a:1, b:2} // this works true > 'a' in ['a', 'b', 'c'] // this doesn't. false
What's going on?
// Does this help clear things up ? > for (i in ['a', 'b', 'c']){ console.log(i) }
Be clear about the differences in principle between lists and js objects (also known as "dictionaries" or "associative arrays" or "hashes" in other languages) and why this behavior makes some sense.
Also mention the .indexOf function and underscore.js additions which make these things simpler.

jQuery, AJAX, and all that

Talk about common javascript libraries, particularly jQuery.
(... more notes coming ... maybe ? )
The popup in http://jsfiddle.net gives a good indication of which libraries are "in vogue".
jQuery - making working with the DOM easier.
jQuery UI - user interface bell's and whistles
underscore.js - language convience functions (array, object, functional programming)
Raphaƫl - SVG vector graphics in canvas tags
Processing - data visualizations and visual art
... and many others.
http://cs.marlboro.edu/ courses/ fall2012/web/ notes/ Sep_27
last modified Thursday September 27 2012 4:09 pm EDT