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:
- “Welcome to Learn JavaScript”
- “Introduction to JavaScript”, “Variables”
- “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.
- Statements
- Variables
- Data Types
- Basic and Shortcut Operators
- Comparison Operators
- Conditionals
- Arrays
- Date()
- Math()
Dynamic Page Example:
- Circles Script – examine code step by step
- Circles Script – Letters
In-class Exercise:
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.