How should b be a vlaue of 7

how should b be a value of 7:

**// Setup
var a;
a = 7;
var b;

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


// Setup
var a;
a = 7;
var b;


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

                                



Your browser information:

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

Challenge: Assigning the Value of One Variable to Another

Link to the challenge:

Without directly assigning the value 7 to b (which is what b = 7 does), you are supposed to assign the value of a to b. Think about how you could use a to assign the value of a to b. Hint: Your final code only needs one extra line (not two).

Also * is multiply. 7 multiplied by 7 is 49.

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