Untitled

 avatar
unknown
plain_text
a year ago
410 B
14
Indexable
function YardGreeningPrice(input) {
    let squaremeters = Number(input[0]);
    let yardGreeningPrice = squaremeters * 7.61;
    let discount = yardGreeningPrice * 0.18;
    let priceWithDiscount = yardGreeningPrice - discount;

    console.log(`The final price is: ${priceWithDiscount.toFixed(2)} lv.`);
    console.log(`The discount is: ${discount.toFixed(2)} lv.`);
}

YardGreeningPrice(["550"]);
Editor is loading...
Leave a Comment