Basic JavaScript (6/111) | Understanding Uninitialized Variables | freeCodeCamp

preview_player
Показать описание
Basic JavaScript (6/111) | Understanding Uninitialized Variables | freeCodeCamp

"When JavaScript variables are declared, they have an initial value of undefined. If you do a mathematical operation on an undefined variable your result will be NaN which means "Not a Number". If you concatenate a string with an undefined variable, you will get a literal string of "undefined".

Initialize the three variables a, b, and c with 5, 10, and "I am a" respectively so that they will not be undefined."

Рекомендации по теме
Комментарии
Автор

Any questions or suggestions comment below ⬇️
I'll do my best to answer your questions and include your suggestions in my next video! 😉

straltech