1.How can you create a function in Javascript
We can create a function by using the function keyword, followed by whatever name we wish to give our function, its arguments and then the code within the function.
2.What is the difference between var and let in regards to scope?
For the keyword var, it is usually used for global variables, while the keyword let is for expressions within a function.
3.What is a pure function?
A pure function is a function without side effects. It is arguably more useful, in the sense that it will not affect any of the bindings outside of itâs function, which means that it can be used on its own, without having to worry that excessive usage might affect bindings that lie within other parts of the code.