- Arrow Function
- To bill status – learning (add/delete of bill item local storage, window.addEventListener [keypress code 13])
ES6 has introduced arrow functions. First, they have a concise syntax. Secondly, they have implicit returns, which allows us to write these nifty one-liners.
- An arrow function simply inherits this object of its parent instead of binding its own, so we don’t need to specify binding of this keyword.
- Arrow function allows implicit returns, no need to write return keyword, as result, we have shorter syntax and no binding of this