-
Describe the biggest difference between
.forEach&.map..mapreturns an array while.forEeachdoes not -
What is the difference between a function and a method?
a method is a function that lives in an object whereas a function stands alone
-
What is closure?
a function that has access to the properties outside of its inner immediatel y local scope
-
Describe the four rules of the 'this' keyword.
window/global binding, implicit binding, explicit binding, new binding
-
Why do we need super() in an extended class?
to have access to the properties of the parent class