Stuck -_-like a truck smh

Stuck like a truck???

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 = 5 + 1;
b = 10 + 5;
c = "I am a String!";

Your browser information:

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

Challenge: Understanding Uninitialized Variables

Link to the challenge:

Hello @Alfonce,

As per the instructions to the challenge, the code has to be changed when the variables are declared in the first three lines just like the instructions say.

The test:
You should not change code below the specified comment.
could be the reason that you are stuck.

If this is not the case, please let me know what message you are seeing in your console.

1 Like

@kamalpreetgrewal It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Thank you for understanding.


@Alfonce

  1. “I am a” is a string, you are missing the quotes around it.

  2. Pay attention to the code comments, you changed the code below where it says “Only change code above this line”.

1 Like

@lasjorg

Thank you so much for letting me know. I am new to the forum and trying to contribute to this amazing platform where I can. I have made the edit on my comment.

I really appreciate your guidance.

1 Like

Thanks. Appreciate the input.