C should not contain undefined,, how do i get this done?

C should not contain undefined,, how do i get this done?
0

#1

Tell us what’s happening:

Your code so far


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

// Do not change code below this line

a = a + 1; var a=6
b = b + 5; var b=15
c = c + " String!"; var c="i am a"

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) 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

Hello @udomeh.

You did not initialize the variable a, b and c Here

And as you can see in the comment, it says do not change the code below this line, but you changed it.

What you have to do now is to assign the values given in the challenge to the variables above a, b and c, in the right place.


#3

When you see the above line of code, you should only be changing the lines of code above it.


#4

i appreciate this reply, however i am still getting this wrong. a direct answer will really help to get over this


#5

We are here to help guide you to a solution and not just give you the solution. Can you post the new version of your code, so we can take a look?


#6

#7

Just realized this a duplicate topic of Undefined and how to initialiaze this var. I have closed this one, so please use the original thread (link above) for all further replies.

Thank you.