Calculate a discounted price
Read the specification, make an attempt and learn from the feedback. Assessment cases remain on the server.
Calculate a discounted price
Return price after a percentage discount. Inputs are numeric price >= 0 and discount from 0 to 100. Use a single return expression. A 100 price and 20 discount must produce 80.
function solution(price, discount) { /* your return expression */ }Learn for free. Practice for real. Build your future.Search lessons

