-
Describe the biggest difference between
.forEach&.map. -ForEach() will allow a callback function to mutate the current array and map() will instead return a new array. -
To simply put a function is defined outside of an object and a method is defined as the property of an object.
-
To simply put, Closures are functions and the functions that defined inside the closure remembers the environment in which it was created.
-
Default binding or Windows binding
-
Implicit binding
-
Explicit Binding
-
New Binding
-
super() allows us to gain access to this items located the base class. Basically it allows us to call on parent's constructor