Javascript2

2,764 views
2,715 views

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
2,764
On SlideShare
0
From Embeds
0
Number of Embeds
1,800
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Javascript2

  1. 2. What we’ve learned so far…
  2. 3. Inserting script in html Using functions Inserting comment in script Selection with “If, else if” Variable declaration & assignment Strings & values Concatenating strings & variables Output to Web page Using Forms Sending form data to function Using arithmetic & comparison operators
  3. 4. Switch instead of “if” http://pic.fsu.edu/courses/2011/spring/cgs2835/tutorials/javascript/examples/switch.html
  4. 5. Looping <ul><li>Doing something over and over </li></ul><ul><li>Two kinds: </li></ul><ul><ul><li>for </li></ul></ul><ul><ul><li>while </li></ul></ul>
  5. 6. Iteration with “while” http://pic.fsu.edu/courses/2011/spring/cgs2835/tutorials/javascript/examples/while.html
  6. 7. Iteration with “for” http://pic.fsu.edu/courses/2011/spring/cgs2835/tutorials/javascript/examples/for.html
  7. 8. Working with Arrays http://pic.fsu.edu/courses/2011/spring/cgs2835/tutorials/javascript/examples/array.html
  8. 9. Arrays – An Easier Way http://pic.fsu.edu/courses/2011/spring/cgs2835/tutorials/javascript/examples/array1.html
  9. 10. Arrays – Even Easier http://pic.fsu.edu/courses/2011/spring/cgs2835/tutorials/javascript/examples/array2.html
  10. 11. Arrays – Form Example http://pic.fsu.edu/courses/2011/spring/cgs2835/tutorials/javascript/examples/array3.html
  11. 12. Generating Random Numbers http://pic.fsu.edu/courses/2011/spring/cgs2835/tutorials/javascript/examples/random.html
  12. 13. jQuery <ul><li>A library of Javascript functions to do common things that require a lot of programming </li></ul><ul><li>http://www.w3schools.com/jquery/jquery_examples.asp </li></ul>

×