Jonas - Javascript
variables
– var abc = ”,
– data types
Section 3 – How JS works
Scoping
When refer to a var that is not available in the current scope, the program will look to the outer scope (or even outer outer scope)
Section 4 – DOM Manipulation
classList, .add .remove classes
.toggle, turn on/off the “active” class
Section 5 – Objects and Functions
Everything is an object, check with console.log() for __proto__
when we try to access properties or methods of an object it will look in its own scope first, then its proto parents, and so on.
call, apply, bind, to change the this variable. And to pre-set some arguments of a function
Comments
Post a Comment