The instructions for this exercise are in the comments at the top of the code.

javascript programming
lab 01

x
 
1
<script>
2
// Add a new property "average" whose value is the average of the three prices.
3
// Print the value of the "average" property. Your program must work correctly
4
// even if I change the values of the prices before testing!
5
6
var price1 = 3.33;
7
var price2 = 1.23;
8
var price3 = 3.45;
9
10
// Add your code here
11
12
</script>