"She miss that throwback Kodak wave
Was just a lil' shooter, ain't have no future
But I can't go back to them days
Versatile three, wait 'til you hear eight
'Rari paper plates, told my dawg we gon' be straight"
*thanks Vonds
#zebra {
color: red;
}
Only one id with the same value per document
<section>
<p>Hello, Twitch!</p>
<p id="zebra">Hello, Youtube!</p>
</section>
.bob {
color: red;
}
Multiple with same value allowed per document
<section>
<p class="robot">Hello, Twitch!</p>
<p id="zebra" class="bob">Hello, Youtube!</p>
<p class="bob">Goodbye, Mixer!</p>
</section>
Syntax: "Spelling and grammar" rules of a programming language.
if (age > 18){
console.log("You are an adult")
}
9 === 9 //true
7 === 3 //false
"Hello" === "Hello" //true
if(condition is true) {
//Do cool stuff
}
if(condition is true) {
//Do this cool stuff
}else if(condition is true){
//Do this other cool stuff
}else{
//Default cool stuff
}
const pizza = "Dominos"
if (pizza === "Papa Johns") {
console.log("Scram!")
} else if(pizza === "Dominos") {
console.log("All aboard the train to flavor town")
} else {
console.log("What are you even doing with your life?")
}
if (name === "Bruce" && parents === "Dead"){
//Turn off the bat signal
}
if (day === "Saturday" || day === "Sunday"){
//It is the weekend
}
Do: Plan out your networking!
Read: https://javascript.info/variables + Tasks
Read: https://javascript.info/function-basics + Tasks
Do: Delete the JS and do it again for all assignments
Do: Something special for yourself this weekend