Var & prompt


#1

One question please. Why var value has to be the same than prompt (value) when you have to answer that pop up I want to understand the logic.
Thanks.


#2

The = sign means you are assigning something to something else.

For example: var feedback = prompt("Rate the game out of 10");
This means: The variable named feedback is assigned a value of prompt("Rate the game out of 10");

Also, don't get it confused with ===, that means equal in JS.


#3

I got thanks! goldiefish