WEEK 2: Values, Types & Operators
(January 13 & 15)

To Do This Week:

NO CLASS next Monday, January 20th – MLK DAY. We will meet on Wednesday, January 22nd.

Assignments:

Codecademy: Complete the lessons (not the projects) from the Learn JavaScript module:

  1. “Welcome to Learn JavaScript”
  2. “Introduction to JavaScript”, “Variables”
  3. “Conditionals”

Optional Reading:

Read chapters from Eloquent JavaScript:


Module Notes

Overview of Hangman Scripts:

Values, Types and Operators

I will provide examples of short scripts that demo basic uses of values, data types and uses or operators and some other things. Please copy in your own files using Sublime Text. Start each project by saving a new file as an html file and then type “html” & press tab key. This will generate HTML for a new page. Name these files the way you want but save them in an examples folder for easy reference.

Dynamic Page Example:

In-class Exercise:

Student Pairings

Circles Page: With your partner, open the Circles Script and change variable values, operators and data types to see results.

Main Concepts: Variables, data types, conditionals, logical operators, user input, and basic JavaScript functions.