Undersatanding initialised varables

// Only change code below this line

var a=5;

var b=10;

var c = "I am a String!";

// Only change code above this line

a = a+1;

b = b+5;

c = c + "String!";

what is wrong with this code


I can’t really see anything wrong. What errors are you getting?

// running tests


should not contain


and should have a value of the string

I am a String!

You should not change code below the specified comment. // tests completed
that is the eror

You need to set the initial value of c so that the final value is correct after

In the future, if you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

Hi @thembo42 !

Welcome to the forum!

I edited your post to include the challenge link.

Also, you didn’t follow instructions.

You are not supposed to change this code.

Reset the lesson and don’t touch that.

1 Like

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