BananaMaster

45.2 - Taxi Fare Calculator, part 2 — extra complexity (JS lessons — arguments and return)

If you forgot something — click to go to the lesson.

📘 Task: Taxi Fare Calculator 2.0

This is a continuation of the previous task. The architecture stays the same — the same 4 functions (3 calculators + 1 main).

🧩 Main condition

Only touch the logic inside calculateDistanceCost, calculateTimeCost and calculateNightSurcharge.

💰 New rates: