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

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты