Basic JavaScript - Understanding Uninitialized Variables

Tell us what’s happening:
Describe your issue in detail here.
i have tried my best so far to correct the last var.
Your code so far

// 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!";

Your browser information:

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

Challenge: Basic JavaScript - Understanding Uninitialized Variables

Link to the challenge:

Hi, in your variable “c” your have to initialize with "I am a " with the “I” , capital, not “i”.

Hi @smartmoses90 !

Welcome to the forum!

This part is incorrect

Reread the directions more carefully here
Initialize the three variables a , b , and c with 5 , 10 , and "I am a"

With your current code, c would have the value of i am a string String!

Once you use the correct text from the directions then you will get the correct result of I am a String!

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