I am recieving an error I tried so many times

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

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

Your browser information:

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

Challenge: Assigning the Value of One Variable to Another

Link to the challenge:

you should not declare a variable more than once and the requirement of the test is to assign a to b without assignment of anything else

The variables are already declared for you, you just need to assign a to b.

var a;
a = 7;
var b;
b = a;

Thank you very much for your help

// Setup

var a;

a = 7;

var b;

b = a;

// Only change code below this line
вот он должно быть таким

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