Akanksha Choudhary@ch_akanksha
Hoisting is an extremely common topic for JS interviews.
Variables declared using 'var' are hoisted to the top of the function scope. The code below does not throw error coz the interpreter pulls all var decl. to the top.
[#javascript #interview questions. Day 6.] See Thread👇
1953

