Question: Open the starter application(zipped) attached to this Assignment folder: a) EvaluationsAssignmentsAssignment 6Part1-trips.zip b) Run and test the application. Review the library file (lib_trips.js). Note that

Open the starter application(zipped) attached to
Open the starter application(zipped) attached to this Assignment folder: a) Evaluations\\Assignments\\Assignment 6\\Part1-trips.zip b) Run and test the application. Review the library file (lib_trips.js). Note that it provides a class named Trip that you can use to create trip objects and a class named Trips that you can use to create trips objects. Modify the library file, so it uses the module pattern to create a trips object that uses a private constant to store the array of Trip objects but provides public properties and methods named push(), totalkml, and toString() Open the main file (trips.js) and modify it so it uses the trips object defined by the library instead of using the Trips class to create an object. Note how this makes the code shorter. In index.html, change the text in the tag to your name and student number. Run and test the application again to make sure it still works as expected

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!