Lecture 09 JS 1 - CS170Lecture9 Javascript1 KristianStout [email protected] Office IN Livingston Student Center A lounge near the rock and the

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 170 Lecture 9  Javascript 1 Kristian Stout [email protected] Office IN: Livingston Student Center, A lounge near “the rock” and the commuter lounge. Office Hours: TTH 5:30 – 6:30
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
What Javascript Is . .. Programming Language INPUT -> PROCESSING -> OUTPUT Formal language with syntax and rules Written directly in HTML Dynamic not compiled does it's “thing” at run-time
Background image of page 2
What Javascript Is Not . .. Not a markup language Not the only programming language.  Not the only way to make pages dynamic. Not Java.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Why choose Javascript? Runs natively in browsers don't need a development environment, debugger  or IDE you have the tools on your computer to use it right  out of the box One important disadvantage of choosing JS to  learn programming Not very robust (compared to compiled languages) type issues, initialization issues, spurious error  messages
Background image of page 4
Embedding JS in HTML Use the <script>  </script> tag Best practice: put <script> </script> in the  head with smaller blocks in the  <body></body> This class: put <script>  </script> in the  body
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
we start our script tag This is required this tells the browser to print out “Hello World!”
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/17/2011 for the course BUSINESS 198:170 taught by Professor Staff during the Spring '09 term at Rutgers.

Page1 / 27

Lecture 09 JS 1 - CS170Lecture9 Javascript1 KristianStout [email protected] Office IN Livingston Student Center A lounge near the rock and the

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online