I can explain the difference between function declarations and function expressions.
- Function expressions store them in variables. Function declarations start with "function [name]" and are hoisted.
I can explain what the value of this
is in a normal function.
- Should refer to the function in the context it's being run in. This is the window "normally".
I can explain what the value of this
is when called from the context of an object.
- It should refer to the object based on the context it was called from.