Tassat Group interview question

Where will this code blow up: var x = y = 3;

Interview Answer

Anonymous

30 Dec 2022

Var y will be hoisted but since it's inside of a function x will not be accessible outside the function.