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 }
1 Odpowiedź
+ 2
newPrice=oldPrice-oldPrice*20/100
console.log(newPrice)