Code-Fellows reading notes.
<p class="fruit">peach</p>
.fruit{color:pink;}
## css selector
<html> Content Layer{css} Presentation Layerjavascript()Behavior Layerdocument.write('Good afternoon!');
object _____method
<script>app1.js</script>console.log(userInfo)Keep your files seperate
This will help you stay organized
<link> to load css<script> to load JSThe language: Syntax and Grammar
Like any new language, there are new words to learn (the vocabulary) and rules for how these can be put together (the grammar and syntax of the language). Pg 54 Basic JS InstructionsJon Duckett
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