Actually i m new of here so don’t understand the means of this line
Do not change code below this line
Your code so far
// Initialize these three variables
var a;
var b;
var c;
// Do not change code below this line
a = 5 + 1;
b = 10 + 5;
c = "I am a String!";
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/understanding-uninitialized-variables
The code below the // Do not change code below this line
is necessary for the tests that run once you submit. The exercise is asking you to initialize the the variables you can do that immediately after they are declared. In other words you can either assign a value to the variable when it created or right after it is declared. See https://www.w3schools.com/jsref/jsref_var.asp
var a;
a = 5;
or
var a = 5;
So you don’t need to change any thing below the comment you mentioned on line #6, happy coding!
For further reading check out https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/var.
True, but the code actually passes the tests…