Check your understanding
The baby phase
Section titled “The baby phase”Name the primitive values in JavaScript Variables
What are variables?Why do we need variables?How do you declare variables?How do you assign variables?What’s the difference between const, let and var?Operators
What does each of the following operators do? + - * / %What does each of the following comparison operators do? === !== > >= < <=Conditionals
What is an if statement?When do you use an if statement?When should you use if, else if, and else? if else if elseHow do you write if, else if, and else?Objects
What is an object?Why do you use objects?How do you put values into objects?How do you get values out of objects?How do you remove a property from an object?What is a method on an object?How do you define methods?How do you call/invoke a method?Functions
What is a function?Why do you use functions?How do you define functions?How do you call/invoke/execute functions?How do you pass arguments into a function?What does the return keyword do in a function?The child phase
Section titled “The child phase”What is a callback
How do you use a callback?How do you write a function that accepts a callback?DOM methods and questions
What is an Element?What is a Node?How do you select an element?How do you select multiple elements?How do you loop through multiple elements for all browsers?How do you add a class to an element?How do you remove a class from an element?How do you check if a class is present on an element?When should you add a class to an element?Events
How do you add an event listener?Why do you add event listeners?How do you create a click event listener?How do you remove an event listener?When should you remove event listers?Why should you remove event listeners?How do you get the event’s target?Early teenage phase
Section titled “Early teenage phase”DOM Questions
How do you select the parent element?How do you select sibling elements?How do you select children elements?How do you create an HTML element?How do you add an element before another element?How do you add an element after another element?How do you get the contents of an element?Event questions
What triggers the input event?What triggers the change event?What triggers the keydown event?What triggers the focus event?