Blog 205

Lucy alverson
1 min readJun 11, 2021
  1. Object oriented programming.

2) “We cannot use new with arrow functions. Arrow functions do not have prototype property. We do not have binding of this when an arrow function is invoked through apply or call .”

3) They both result in a function you can call via the symbol foo. One is a function declaration, the other is a function expression. They are evaluated at different times, have different effects on the scope in which they're defined, and are legal in different places.

4) => is best for callbacks. = is best for assigning.

5)let statesArr = [“Nevada”, “California”, “Michigan”];

let [first, second, third] = statesArr;

console.log(first) // “California”

console.log(second) // “Michigan”

console.log(thid) // “Nevada”

6)A closure is the combination of a function bundled together with references to its surrounding state. In other words, a closure gives you access to an outer function’s scope from an inner function.

--

--