Basic JavaScript - Storing Values with the Assignment Operator

Tell us what’s happening:
Describe your issue in detail here.
hello,i think i need more assistance because it seems I don’t know anything in this
Your code so far

// Setup
var a;
a =5
// Only change code below this line
var a
a = 7

Your browser information:

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

Challenge: Basic JavaScript - Storing Values with the Assignment Operator

Link to the challenge:

  • You changed the code above the comment.

  • You redeclared the variable.

Some example code if needed:

// Setup
var name;

// Only change code below this line
name = 'John'

hello and welcome to fcc forum :smile:

  • there is a re declaration of variable!! as its been pointed out

lets read from instructions

Assign the value 7 to variable a .

you just need to “assign” with that given “value”, address that change after removing “re-declaration” error, and it should be alright, happy learning :slight_smile:

1 Like

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