This is because all declarations are hoisted. Function declarations are no different than variable declarations, memory must be reserved for them as well.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is because all declarations are hoisted. Function declarations are no different than variable declarations, memory must be reserved for them as well.