+ 2

JavaScript “the big sale” discount question

Please please please can someone in a kind way tell me the answer and explain it? I don’t feel the app in anyway provided enough info to know the answer or any support and nothing I have tried has worked. This is my first time trying to code so please help

21st Jan 2021, 10:03 PM
Jennifer Reich
4 Réponses
+ 2
function main() { var oldPrice = parseInt(readLine(), 10) // your code goes here var result = oldPrice -(oldPrice *.20) console.log(result) }
27th May 2021, 11:31 PM
Soharab Uddin Mondal
Soharab Uddin Mondal - avatar
0
Where are the details of this question?
21st Jan 2021, 10:40 PM
Rik Wittkopp
Rik Wittkopp - avatar
0
You are right tho Jennifer, for noobs learning programming, parseInt isnt explained in bootcamps until much further on… if you havent started a bootcamp, try Headfirst Javascript progamming book… much easier ease into if for first timers..
10th Jan 2022, 8:26 PM
David Haley
- 1
I still on the question try console.log(80);
11th Mar 2021, 3:18 AM
sarah aziz
sarah aziz - avatar