complexity: 2 ; importance: 8; author: docentmail
Question: Is this valid to call function before it is declared?
Answer: Yes it is a valid call.
Explanation: Function declaration) gets hoisted completely (name and implementation).
Read it for details:
webculum's tutorial: Hoisting behavior