+ 1
SINTAX ERROR WHERE?
https://sololearn.com/compiler-playground/WpQ37u1Upe7M/?ref=app
3 ответов
+ 6
Strings go inside "..." or '...'
It must be
alert("Regular price")
not
alert(Regular price)
and so on
+ 4
also
Number(prompt());
not
number(prompt());
and you probably don't need to convert to Number if you're not going to do any computations to it.
Javascript is quirky because it can do comparison operations this way.
This works:
'5' < 10
which is unconventional behavior for most programming languages.
https://www.w3schools.com/js/js_comparison.asp
+ 2
Oh thank you