Basic JavaScript - Understanding Uninitialized Variables

Tell us what’s happening:

please check My approach where I am exactly going wrong

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!";

a=5;
b=10;
c="I am a";

console.log(a+1);
console.log(b+5);
console.log(c + " String!");

Your browser information:

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

Challenge Information:

Basic JavaScript - Understanding Uninitialized Variables

Initialize the three variables a , b , and c with 5 , 10 , and "I am a" respectively so that they will not be undefined .

Looks like you overlooked an instruction.

I’m curious. Where on this site did you get that link? You are working in a legacy JavaScript curriculum that is v8, not the one posted on the curriculum dashboard.

Legacy Javascript Algorithms and Data Structures Certification is still accessible from FCC’s home page.

I don’t see “Basic JavaScript - Understanding Uninitialized Variables” anywhere in the legacy JavaScript curriculum. Where do you see that?

EDIT: Never mind. I see it now. Never noticed there were two JavaScript curriculum paths in the archived section. Going to get more coffee now…

1 Like

It’s under Our archived coursework

You have to click on the Legacy Javascript Algorithms tab to see it.