Code-Fellows reading notes.
- Chapter 2: “Text” (pp.40-61)
- Chapter 10: Ch.10 “Introducing CSS” (pp.226-245)
- Chapter 2: “Basic JavaScript Instructions” (pp.53-84)
- Chapter 4: “Decisions and Loops” only up to the section on switch statements (pp.145-162)
let axe = 3
var today = new Date();var hourNow = today.getHours();var greeting;
greeting = 'good evening' ;} else if (hourNow > 12) {greeting = 'good morning' ;} else {greeting = 'welcome' ;}document.write(greeting);/* This is commented out multi line*/
<!-- or this -->
Step #1
Declare Variable
var quantity;
Assign Value
quantity = 6;
0.45
'Hello world!'
True or False
Remember the 6 Rules of naming a variable:
Check page 69 in the book to see the rules.
-use when working with values that are related to eachother.
var color = 'blue';
var volume = 4 * 4 * 5;
### arithmetic operators
+-/*++ (adds one to current)-- (subtracts one from current)% (divides two values, returns remainder)