InLab COSC 231: 11/12/2012 (1) D&T Review and Practice Problem page 169: Modify the dice roll function so that it keeps track of the number of times it rolls each value. Do this by assigning six properties to the function (one for each die face) or by using a single array property. var diceRoll = function() { return 1 + Math.floor( ^ * Math.random() ); } (2) Extend Geometry with rectArea and rectPerimeter, and test. (3) Create a Line object that uses two Points. Create method that calculates the distance between the endpoints. Do this in two different ways and state which way is better and why.