Understanding Uninitialized Variables error on the var c

Understanding Uninitialized Variables error on the var c
0

#1

Tell us what’s happening:
I have an error on var c I guess Im doing well except fot the var c…can you guys te llme what is the erron on the var c?

Your code so far


// Initialize these three variables
var a;
var b;
var c;

// Do not change code below this line

var a = 6;
var b = 15;
var 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/69.0.3497.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/understanding-uninitialized-variables/


#2

You are not doing what is required of test.

Challenge clearly mentions not to change code below this line.
However, you changed the code.
Reset the code and try again.

You will have to initialize these variables not only declare.

Read the instructions carefully:

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

Hope this helps.


#3

I got the error…I needded to create a new vars!!! at the same time I forgot to put that simbol " ! "
it looks like that …just in case some one has the same error…!!!

a = a + 1;
b = b + 5;
c = c + " String!";

a = 6;
b = 15;
c = “I am a String!”;


#4

your are right!!! I forgot that which is the most important thanks any way!!!