Question: JavaScript 460244.1730822.qx3zqy 7 Jump to level 1 Define a function named actorinfo() that takes an actor name and actors map as arguments and outputs {actorName}

JavaScript 460244.1730822.qx3zqy 7 Jump to level 1 Define a function named actorinfo()JavaScript

460244.1730822.qx3zqy 7 Jump to level 1 Define a function named actorinfo() that takes an actor name and actors map as arguments and outputs "\{actorName\} plays \{role\} in \{movie\}". If the actor is not found, the method outputs "Actor not found". Ex: actorInfo("Matthew McConaughey", actors) outputs "Matthew McConaughey plays Cooper in Interstellar" and actorInfo("Nicole Kidman", actors) outputs "Actor not found

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!