Question: Create a Javascript program that: a.) MOVE OBJECT Create a move object the does the following properties and method step() - stores the number of

Create a Javascript program that: a.) MOVE OBJECT Create a move object the does the following properties and method step() - stores the number of steps an object has taken forward() - moves an object forward by one back() - moves an object backward by one show() - show the number of step the object has already taken create the methods of the object in such a way that it can be constructed as a chaining method call example: move forward().forward().back().forward().back().back().show() //result is 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
