Help with the c string

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


// Only change code below this line
var a = 5;
var b = 10;
var c = " I am a";
// Only change code above this line

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36

Challenge: Understanding Uninitialized Variables

Link to the challenge:

The error message you are getting is a little confusing because it states that c should not contain undefined which doesn’t make sense here and is probably a bug in the test. The second part of the error message is correct though:

"should have a value of the string I am a String!"

Notice in your code you have added a space before the “I”. Is there a reason you added that, or is it just a mistake? These tests can be very picky about such things and your solution usually needs to be exactly the same as what the instructions are asking.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.