Unitialized variables

var a = 5;
var b = 10;
var c = "I am a";

var a;
var b; 
var c;

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

var a = 6;
var b = 15;
var c = "I am a String!";

// 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/92.0.4515.107 Safari/537.36

Challenge: Understanding Uninitialized Variables

Link to the challenge:

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Hi @Mmaina !

I would suggest reseting the lesson.

Your task is to assign the variables with 5 , 10 , and "I am a"
This part is correct

This stuff is wrong. Leave it out.
Only edit code where you are supposed to.
Do not touch code you are not supposed to.

thanx so much @ jwilkins.oboe.

It has worked eventually

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