Basic JavaScript - Understanding Uninitialized Variables

Tell us what’s happening:
Where can I see the output after I execute the code? It doesn’t appear at the bottom of the screen. In the downloaded .txt file, it only gives the code but not the executed result.

Your code so far

// Only change code below this line
var a;
var b;
var c;
a = 5;
b = 10;
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; rv:109.0) Gecko/20100101 Firefox/115.0

Challenge: Basic JavaScript - Understanding Uninitialized Variables

Link to the challenge:

There is no output for this code. You would have to add a console.log() for any output you want to see.

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