Course · Section 8: How JavaScript Works Behind the Scenes · Lecture 98: Variable Environment: Hoisting and The TDZ
Implement `useHoisted(n)` that calls a function declaration `sq` defined later in the body, returning `n` squared. Function declarations are hoisted.
+ 1 hidden test run on Submit.
Function declarations are hoisted, so sq can be called before its definition appears.
Run your code to see results.