Understanding Uninitialized Variables (undefining c var)

Understanding Uninitialized Variables (undefining c var)
0

#1

The values are assigned as instructed to variables,help me in undefining c var

Your code so far

// Initialize these three variables
var a = 6;
var b = 15;
var c = I am a String;

// Do not change code below this line

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

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0.

Link to the challenge:


#2

A String should be in " marks.


#3

please send me the exact code to crack this challenge, tried using " marks,its not working out


#4

What did you actually write?

You have a second problem. Re-read the instructions and make sure you initialise c correctly.


Instructions

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



#5

got it finally ,thnx


#6

whats is the exact answer?


#7

You are not required to complete the challenges to progress. If you want help use the “Ask for help” button in the challenge, which will create a list with your own code, and you will get some hints on how to get a better answer.

The goal is not to write down the right answer, but for you to be able to reach the right answer. (Otherwise how could you create your own projects?)