JS 1 - Naming Variables Declaring Variables Assigning...

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

View Full Document Right Arrow Icon
CS 170: Javascript 1 Kristian Stout stouty@rci.rutgers.edu
Background image of page 1

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

View Full DocumentRight Arrow Icon
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 2
we start our script tag This is required this tells the browser to print out “Hello World!”
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

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

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

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

View Full DocumentRight Arrow Icon
Background image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Naming Variables Declaring Variables Assigning Variables Data Types String Boolean Number ???? Your First Three JS Functions document.write(print to screen, please.); alert(watch out!); prompt(What is your name, );...
View Full Document

Page1 / 8

JS 1 - Naming Variables Declaring Variables Assigning...

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

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