Essential JavaScript

Plant Purchase Kata

Someone you know really likes plants. They buy them all the time.

They are trying to see if they should buy a new plant they just found.

Given their current account balance (accountBalance) and the cost of a specific plant (plantCost), return their account balance after buying the plant.

Code Editor