What happens when JavaScript variable name and function name is the same?

Functions are a type of object which are a type of value. Values can be stored in variables (and properties, and passed as arguments to functions, etc). A function declaration: Creates a named function Creates a variable in the current scope with the same name as the function (unless such a variable already exists) Assigns … Read more