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

Published: 09 July 2020
on channel: Stral Tech
1,385
10

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

Full playlist 👉    • Basic JavaScript (1/111) | Comment Yo...  

"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."

https://www.freecodecamp.org/learn/


Watch video Basic JavaScript (6/111) | Understanding Uninitialized Variables | freeCodeCamp online, duration online in high quality that is uploaded to the channel Stral Tech 09 July 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 1,385 times and liked it 10 visitors.