The HTML document
What is a DOM tree?
* Select element by id
Difference between Number.isNaN(); and isNan();
Number.isNaN returns true when the argument is a number and is NaN.
isNaN converts to a number and returns true when the resulting value is NaN
They make our apps do stuff!
No
.addEventListener
callback function
a function definition being passed in as an argument
The target of the object
You can check in your browser/ console.
What is the difference?
element.addEventListener(‘click’, handleClick)
element.addEventListener(‘click’, handleClick())
handleClick());
fires immediately and messes up the function when button clicks.
No
focus