learning to love java script
DESCRIPTION
TRANSCRIPT
![Page 1: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/1.jpg)
JavaScriptLearningto love
Mike GirouardBarCamp Orlando
![Page 2: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/2.jpg)
alert(‘hello world’);
![Page 3: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/3.jpg)
var theBad = this;
![Page 4: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/4.jpg)
JavaScript
Java!==
![Page 5: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/5.jpg)
63reserved words
![Page 6: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/6.jpg)
37actually used
![Page 7: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/7.jpg)
implied global scope
![Page 8: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/8.jpg)
![Page 9: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/9.jpg)
![Page 10: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/10.jpg)
+
![Page 11: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/11.jpg)
a+b
![Page 12: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/12.jpg)
NaN
![Page 13: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/13.jpg)
NaN
![Page 14: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/14.jpg)
typeof(NaN)
![Page 15: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/15.jpg)
typeof(new Array)
![Page 16: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/16.jpg)
var theGood = this;
![Page 17: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/17.jpg)
[...]
![Page 18: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/18.jpg)
{...}
![Page 19: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/19.jpg)
f({...})
![Page 20: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/20.jpg)
f(a)
![Page 21: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/21.jpg)
foo || bar
![Page 22: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/22.jpg)
!!mikeG
![Page 23: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/23.jpg)
for ... in
![Page 24: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/24.jpg)
obj.prototype
![Page 25: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/25.jpg)
obj[‘foo’]
![Page 26: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/26.jpg)
loose typing
![Page 27: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/27.jpg)
lambdas
![Page 28: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/28.jpg)
E.onDOMReady(function () {
// More code awesomeness
});
![Page 29: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/29.jpg)
the “module”
![Page 30: Learning To Love Java Script](https://reader034.vdocuments.us/reader034/viewer/2022051818/54b9eb354a795963388b46eb/html5/thumbnails/30.jpg)
MIKEG.example = (function () { var YUD = YAHOO.util.Dom;
return { foo: true, bar: function () {...}, baz: function () {...} };}) ();