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 =5;
var b =10;
var c = "i am a";

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




// Only change code above this line




Your browser information:

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

Challenge: Basic JavaScript - Understanding Uninitialized Variables

Link to the challenge:

Typo error in your code. ```
c = c + "string";
in this line of code. Your value should be " String!"; as given.

You also need to pay attention to spelling - JavaScript is very picky about spelling. Upper or lower case are also tricky.

The challenge asks for this first part of the string:

"I am a"

Is that what you entered in your example? :wink:

Welcome to our community!

The following code is what you get in this challenge:
image

Reset the step.

  • Don’t change the code below the second green line with the comment.
  • For the c variable do as @ itisi said - capitalize the first letter in the required value for that variable: "I am a".

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