0

What will the code below output to the console and why?

(function() {var a = b = 3; })(); console.log("a defined? " + (typeof a !== 'undefined')); console.log("b defined? " + (typeof b !== 'undefined'));

15th Apr 2017, 9:51 AM
Bhuwan Pandey
Bhuwan Pandey - avatar
1 Answer
+ 12
You could try it out and debug it at the code playground.
17th Apr 2017, 8:13 AM
Tashi N
Tashi N - avatar