4
Jul 20 '21
The first fact has an omitted exception: arrow functions. An arrow function without a return statement or curly braces will return the result of the evaluated inline statement.
For example:
const myFunc = (x) => x+2;
console.log(myFunc(1));
// 32
1
1
u/dreevo_ Jul 20 '21
Angular NgRx/Store + ExpressJS Shopping Cart Series
https://www.youtube.com/watch?v=VIje9vLlQ3c&list=PLaIAlYh_vQPWpaKUJwYt7sCjVe7nRoN8u





20
u/[deleted] Jul 19 '21
function declarations aren't the only thing that is hoisted, variable declarations with
varare also hoisted.e.g. the following does not work: