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;
var b;
var c;
// Only change code above this line

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

var a = 6;
var b = 15;
var c = "I am a String!";

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; SM-G965U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36

Challenge: Basic JavaScript - Understanding Uninitialized Variables

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

hello and welcome to fcc forum :slight_smile:

  • duplicate variables declarations, remove those first
  • you’re supposed to initialize these variables, which you havent yet

lets read from instructions

Initialize the three variables a , b , and c with 5 , 10 , and "I am a" respectively

address those changes and it should be alright, happy learning :slight_smile:

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