JavaScript can add another dimension to our sites with simple math calculations, such as working with conditionals for an order form to add the proper taxes or currency conversions. Let’s return to QVR Tours for this thread and write some JavaScript that will assist in the following calculations:

Discounts a tour if there are more than 8 people attending (you decide on the discount)