Question: Your instructions are to create an object graph to represent your favorite sports team, cast of movie characters, or any other group of interesting objects.
Your instructions are to create an object graph to represent your favorite sports team, cast of movie characters, or any other group of interesting objects. You must use aJavaScript CONSTRUCTOR to define object attributes, and to instanciate your objects, as demonstrated in the video lecture. You must also use the JavaScript PROTOTYPEproperty to define and invoke at least one object function. When you are done, write an extremely simple HTML document to show the contents of your object graph. Don't forget to invoke at least one object function you defined in the class prototype. Your method of accessing the JavaScript objects to put them on the screen is irrelevant, I simply want to see a demonstrated understanding of JavaScript class definitions, instantiating objects, and invoking prototype functions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
