+ 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
4 Answers
+ 2
function main() {
var oldPrice = parseInt(readLine(), 10)
// your code goes here
var result = oldPrice -(oldPrice *.20)
console.log(result)
}
0
Where are the details of this question?
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..
- 1
I still on the question try console.log(80);