Consider following code:
var str;
var i = '0';
console.log(str+i);
What will be printed to the console?
Explanation
Variable str declared but no value was assigned. Technically it has the value of undefined. Example:

var name;
console.log(name); // undefined
name = "James";
console.log(name); // "James"

Следи за CodeGalaxy

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

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