Exercise on Function Scope, Block Scope, Constants

This exercise will test your knowledge on the scope and sequence of function execution. You will have to keep track of the function's path using console.log().

Exercise 1

Check the following code snippet riddle:

Determine the values logged to the console before you execute it.

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.