1. How can you create a function in Javascript?
With an expression that starts with the keyword function, then followed by parameters in () and body {statements to be executed}
2. What is the difference between var and let in regards to scope?
let is local to the block that it is declared in, so if you create one of this inside of a loop, the code before and after the loop cannot âseeâ it. The var binding are visible throughout the whole function that they appear in - global scope
3. What is a pure function?
It is a specific kind of value-producing function that not only has no side effects but also doesnât rely on side effects from other code.