Code wont run and i dont understand why

Tell us what’s happening:
Describe your issue in detail here.
i dont understand why it wont run< please help!

Your code so far


// Only change code below this line
var a = 5 ;
var b = 10;
var c = "I am a ";
// 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.131 Safari/537.36 OPR/78.0.4093.147

Challenge: Understanding Uninitialized Variables

Link to the challenge:

You have an extra space in your string variable:

// Only change code below this line
var a = 5 ;
var b = 10;
var c = "I am a ";
// Only change code above this line

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

console.log(c); // "I am a  String!"

damn thank you so much i didnt expect java to be that sensitive

*JavaScript - Java and JavaScript are very different things

This isn’t a question of JavaScript being ‘sensitive’ so much as all of computer programming being ‘sensitive’. Computers can only do exactly, literally what you tell them to do.

1 Like

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