+ 1

Help with JavaScript

Why won't the price print out https://code.sololearn.com/W8tHQtj5m657/?ref=app

8th Apr 2020, 5:55 AM
Cam
Cam - avatar
2 Answers
+ 1
It should be price*=2 and price/=2. price*2 and price/2 are just math expressions that don't change your price variable.
8th Apr 2020, 6:04 AM
Kevin ★
+ 1
I remember learning that now. Thanks
8th Apr 2020, 6:05 AM
Cam
Cam - avatar