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() 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
Get step-by-step solutions from verified subject matter experts
