learning to love java script color

Post on 17-Jan-2015

789 Views

Category:

Technology

4 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

JavaScriptLearningto love

Mike GirouardBarCamp Orlando

alert(‘hello world’);

var theBad = this;

JavaScript

Java!==

63reserved words

37actually used

implied global scope

+

a+b

NaN

NaN

typeof(NaN)

typeof(new Array)

var theGood = this;

[...]

{...}

f({...})

f(a)

foo || bar

!!mikeG

for ... in

obj.prototype

obj[‘foo’]

loose typing

lambdas

E.onDOMReady(function () {

// More code awesomeness

});

the “module”

MIKEG.example = (function () { var YUD = YAHOO.util.Dom;

return { foo: true, bar: function () {...}, baz: function () {...} };}) ();

Thanks!mikeg@lovemikeg.com

top related