Question: Practice by creating your own object in javascript The object is a robot, it has a name a manufacturer an object attribute, skillset, made up

Practice by creating your own object in javascript
The object is a robot, it has
a name
a manufacturer
an object attribute, skillset, made up of 3 key skills - skill1, skill2, skill3. You can make these numbers or strings, for example, cooking could be 1, or you could use "cooking" as a string. Keep the skills appropriate....
a method (function tied to the object and defined within the object) that checks the skill passed in and returns a boolean value indicating if the robot has that skill or not. You may need to use a conditional, or a Set data structure if you are familiar with this.
Include code that lists the attribute values of your robot, and illustrates how the single method is used, the one that checks to see if the robot has a specific skill.

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 Databases Questions!