O que está errado com este código?

Tell us what’s happening:

Noções básicas sobre variáveis ​​não inicializadas
// running tests

c

should not contain

undefined

and should have a value of the string

I am a String!

You should not change code below the specified comment. // tests completed

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

Challenge: Understanding Uninitialized Variables

Link to the challenge:

The error says it all:

You should not change code below the specified comment.

It was:

c = c + " String!";

and you changed it to:

c = c + "String!";

Notice that above that is the comment:

// Only change code above this line

When I fix that, your code passes for me.

Olá meu amigo, você tem razão! Tudo correu bem agora. Muito obrigado.

1 Like

Hola, su código está justo hasta el segundo punto donde dice: solo cambie el código por encima de esta línea. Indique no o elimine espacios en la nueva var c.