0

What did i do wrong?

I am new to JS... What did I do wrong here? Thats problem 1 in JS course... //so we don’t overwhelm you, we’ve hidden the code that executes the input function main() { var oldPrice = parseInt(readLine(), 10) var newPrice = 20(oldPrice*20/oldPrice)oldPrice console.log newPrice // your code goes here }

26th Jan 2021, 2:57 PM
Coolman
1 Odpowiedź
+ 2
newPrice=oldPrice-oldPrice*20/100 console.log(newPrice)
26th Jan 2021, 3:02 PM
Abhay
Abhay - avatar