Intro to Javascript

Intro to Javascript

From Society for News Design iPad workshop.

4fa1c18bc3a13c65525f3abd3cf96f08?s=128

Yuri Victor

May 25, 2013
Tweet

Transcript

  1. 1.

    JS

  2. 4.

    JAVASCRIPT IS A MULTI-PARADIGM, WEAKLY TYPED, PROTOTYPE-BASED INTERPRETED PROGRAMMING LANGUAGE

    ORIGINALLY INTENDED FOR WEB BROWSERS SO CLIENT-SIDE SCRIPTS COULD INTERACT WITH THE USER, CONTROL THE BROWSER, COMMUNICATE ASYNCHRONOUSLY AND ALTER THE DOCUMENT CONTENT
  3. 5.

    NO!

  4. 8.
  5. 14.

    NO!

  6. 16.

    NO!

  7. 18.
  8. 20.
  9. 21.
  10. 22.
  11. 33.
  12. 34.
  13. 35.
  14. 36.
  15. 41.

    <h1>0</h1> <h2>AWESOMENESS</h2> <button id="decrease">-</button> <button id="increase">+</button> <script src="jquery.min.js"></script> <script> var

    awesomeness = 0; // We suck $( 'button' ).click( function() {! ! if ( $( this ).attr( 'id' ) === 'increase' ) { ! ! awesomeness = awesomeness + 10; ! } else { ! ! awesomeness = awesomeness - 1; ! } ! $( 'h1' ).text( awesomeness ); } ); </script>
  16. 42.
  17. 44.
  18. 45.
  19. 47.
  20. 49.
  21. 50.
  22. 57.