ES6 Arrow Function & this bug let accHeadings = document.querySelectorAll(`.accordionItemHeading`); // NodeList(3) // let accHeadings = [...document.querySelectorAll(`.accordionItemHeading`)]; for (let i = 0; i < accHeadings.length; i++) { accHeadi…
Functions are values, and we can manipulate function values in interesting ways.Currying allows us to produce a new function by combining a function and an argument: var add1 = add.curry(1); document.writeln(add1(6)); add1 is a function that was crea…