Global Business Hours LIVE
🇺🇸USA:EDT
🇬🇧UK:BST
🇨🇦Canada:EDT
🇦🇺Australia:AEDT
BizAIProBizAIPro
LEARN BY DOING

Calculate a discounted price

Read the specification, make an attempt and learn from the feedback. Assessment cases remain on the server.

Hard · SERVER-CHECKED PRACTICE

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