"If I get caught up in the storm, my brain gon storm the most"
Submit URLs here: https://forms.gle/G7LhHnyTA7zYq7UV6
#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 === "Leon" && status === "Ballin"){
//Wink at camera
}
if (day === "Saturday" || day === "Sunday"){
//It is the weekend
}
function name(parameters){
//body
}
//call
name(arguments)
function yell(word){
alert(word)
}
yell("HELLO")
Read: https://javascript.info/function-expressions + Tasks
Read: https://javascript.info/arrow-functions-basics + Tasks
Read:https://github.com/thejsway/thejsway/blob/master/manuscript/chapter04.md
Do: Delete the JS and do it again for all assignments