Hello there.
Do you have a question?
If so, please edit your post to include your question and your current code.
The more information you give us, the more likely we are to be able to help.
yes, I am struggling with the demand to make a=b
Can you please include your current code?
That’s because you are supposed to do the exact opposite ![]()
Propably missread the task.
var a;
a= 7;
var b;
b= 7;
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
You need to assign the contents of a into b, not the value that you happen to know was assigned to a.
I having trouble understanding, could you maybe give me a hint
You know the value in a is 7. Pretend that you don’t. How do you put the contents of a into b?
I am going to need a more information than that, because I do not know how to pretend that the value does not exist
Is there a part of the given example that confuses you?
var myVar;
myVar = 5;
var myNum;
myNum = myVar;
Nowhere in the example do they use their knowledge of the contents of the first variable to set the contents of the second.
I have been using your format for awhile now, yet nothing is working
var myVar;
myVar=7;
var b;
b= 7;
var myVar;
myVar = 7;
var myNum;
myNum=myVar;
That’s just the concept of. I just need to know how to exactly do it
Or show me the mistake I am making
To be clear, we won’t do it for you.
You shouldn’t copy the example code. You should make the code in the challenge work in a similar way as the code in the example.
In the example, the variable myVar is created. Then a value is assigned to this variable. Then the variable myNum is created. Then the contents of myVar are copied into myNum.
You need to do something similar in the challenge, with a and b.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
