Question A
Data storage on the client side is one of the main functions of JavaScript. Discuss two of the methods that can be used for client data storage.
Sales Function
Write a function that lists 5 sale amounts in an array then loop through the sale amounts adding the individual sale amounts in order to determine the total sales amount.
Display this total sales amount in a alert message. (Hint, use Listing 3.5.6 on page 50 as reference).