Answer the question
In order to leave comments, you need to log in
Variable not changing?
I wrote the code, according to the code it was written that the variable "MONEY" should change as a result of the message "Click 0.01", as a result, nothing changes. What could be the problem? Doesn't throw any errors and runs smoothly.
Answer the question
In order to leave comments, you need to log in
Vovan.money = 10; // У Вовочки было 10 рублей.
let gift = 5; // Бабушка решила подарить ему еще пять
Vovan.money += gift; // Сколько теперь денег у Вовочки?
Vovan.money = 10
, it remains so. This is how it should be - all these variables exist in the computer's memory while the program is running. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question