What is the syntax for defining an arrow function?
(param1, paramN) => {
let a = 1;
return a + param1 + paramN;
}When an arrow function’s body is left without curly braces, what changes in its functionality?
It expects an expression (and not a statement)
It’s going to return a value (if we use curly braces we must add a return)
How is the value of this determined within an arrow function?
By its surrounding scope.
they execute in the scope they are created (the arrow function definition)