Balloon Kata
Use JavaScript to: parse strings and convert them to numbers; loop through an array; compare the result of calculations.

Order up
You want to have a variety of balloons for a party. You can only order balloons in sets of 3.
This order was placed:
4 sets of red, 3 sets of blue, and 3 sets of yellow.
The price for each set of balloons is:
R4 for red, R5 for blue, and R5.50 for yellow.
Use these strings as your starting point.
Write functions that answer the following questions. If you’re familiar with mocha, use TDD.
- How many of each colour balloon did we order?
- How much do all the balloons cost?
- If it costs R2.00 to inflate each balloon with helium, how much extra would that cost?
- If there are 25 people coming to the party, are there enough balloons for everyone to get one balloon? Do you have any spare?
Pop, pop!
During the party
5 red balloons, 1 blue balloon, and 3 yellow balloons popped
- How many people won’t have balloons?
- Which colour has the most balloons, and which one has the least?
Other parties:
Remember that your functions should also work for other parties.
7 sets of orange, 3 sets of yellow, and 8 sets of blue.R6 for orange, R3.75 for yellow, and R7.50 for blue.6 orange ballons, 2 yellow balloons, and 5 blue balloons popped