JavaScript Objects

JavaScript Objects

Write an HTML5 page with JavaScript that creates a custom object to store information about a vehicle. Create the object in an external JavaScript file. The vehicle
must have at least four properties, one being direction which will have a value between 0 and 359 degrees. Add two methods called left and right which when invoked
will subtract and add 10 degrees respectively to the direction property. Also add a method displayAll that will display all the properties of the custom object in an
alert box. Instantiate two variables of the custom object in the <body> tag of the HTML5 page and provide buttons for the three methods defined for each instantiation.

An example page is shown below. Create your own version. Do not copy the design of the example page. (see attached)

Your assignment grade will be based on correctness of JavaScript code, readability of the Javascript code, code comments and final HTML page layout.
Specific requirements

Indent HTML and JS. Use 2 character indentation instead of 4 character indentation.
File #1

Order from us and get better grades. We are the service you have been looking for.