L ea rni ng
Java
 to
     Sc
    love
        ri pt
              Mike Girouard
              BarCamp Orlando
alert(‘hello world’);
var theBad = this;
JavaScript
 Java
   !==
63words
reserved
37used
actually
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 () {.....
Thanks!
mikeg@lovemikeg.com
Learning To Love Java Script Color
Learning To Love Java Script Color
Upcoming SlideShare
Loading in …5
×

Learning To Love Java Script Color

893
-1

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
893
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
35
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Learning To Love Java Script Color

  1. 1. L ea rni ng Java to Sc love ri pt Mike Girouard BarCamp Orlando
  2. 2. alert(‘hello world’);
  3. 3. var theBad = this;
  4. 4. JavaScript Java !==
  5. 5. 63words reserved
  6. 6. 37used actually
  7. 7. implied global scope
  8. 8. +
  9. 9. a+b
  10. 10. NaN
  11. 11. NaN
  12. 12. typeof(NaN)
  13. 13. typeof(new Array)
  14. 14. var theGood = this;
  15. 15. [...]
  16. 16. {...}
  17. 17. f({...})
  18. 18. f(a)
  19. 19. foo || bar
  20. 20. !!mikeG
  21. 21. for ... in
  22. 22. obj.prototype
  23. 23. obj[‘foo’]
  24. 24. loose typing
  25. 25. lambdas
  26. 26. E.onDOMReady(function () { // More code awesomeness });
  27. 27. the “module”
  28. 28. MIKEG.example = (function () { var YUD = YAHOO.util.Dom; return { foo: true, bar: function () {...}, baz: function () {...} }; }) ();
  29. 29. Thanks! mikeg@lovemikeg.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×