Basic JavaScript - Understanding Uninitialized Variables

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

Your code so far

// Only change code below this line
var a;a=5;
var b;b=10;
var c;c="I am a";
// Only change code above this line
a = a + 1;a+1=6;
b = b + 5;b+5=15;
c = c + " String!";c+" String!"="I am a String!";

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Mobile Safari/537.36

Challenge: Basic JavaScript - Understanding Uninitialized Variables

Link to the challenge:

These comments aren’t just suggestions :slight_smile: You made changes outside of them. I would undo those changes or reset the lesson to get the original JS back.

While this will work, I think the intent was to both declare and initialize the variable in one statement, not two.

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