What will be printed to the console after executin the following code?

if(true) {
   var a = b = 3;
   b = 4;
}
console.log(a);
console.log(b);
Explanation
variable A does not depends of variable B and result of the code will be 3 and 4

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes