JS in HTML. Including JavaScript in HTML with script element, with either
src attribute or JS code.
Variables. Declare variables with let and sometimes
const. Though you will see the older var, but avoid that.
Console is your friend. Your browser developer tools will be critical to use, and
especially the "Console". Log to the console in JS with
console.log('hello there!');
When is the code executed?script in head or right before the body close tag - </body> But it is good practice to rely on specific events!
Events - load, click, focus, blue, submit, mouseover, mouseout, keypress.
HTML attributes are available, but don't use these. Add event listeners through JavaScript!