- Describe the biggest difference between .forEach & .map.
.forEach opperate exactly like a for loop itterating through each element and modifying, comparing, or returning a value.
.map takes and array and returns a brand new array.
-
What is the difference between a function and a method? there isn't?
-
What is closure? a function inside of a function
-
Describe the four rules of the 'this' keyword. window, implicit, explicit, new
-
Why do we need super() in an extended class? it allows a child class to inherit from it's parent class.