Javascript and JQuery March 2008

2,317 views

Published on

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

No Downloads
Views
Total views
2,317
On SlideShare
0
From Embeds
0
Number of Embeds
23
Actions
Shares
0
Downloads
103
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Javascript and JQuery March 2008

  1. 1. JavaScript and jQuery John Resig - March 2008 ACM Northeastern University
  2. 2. JavaScript Language ✦ Basics ✦ Functions ✦ Function Prototypes ✦ Closures
  3. 3. The Basics ✦ Most akin to most other major languages ✦ Looping: for ( var i = 0; i 10; i++ ) {} // array for ( var i in obj ) // obj property/value while ( true ) {} ✦ Statements: if ( true ) {}
  4. 4. Variable Declaration ✦ Variable declaration: var foo = “bar”; ✦ Variables are scoped to the function, not to the block ✦ function test(){ for ( var i = 0; i 10; i++ ) {} return i; } test() == 10

×