Question: JavaScript code CHALLENGE6.7.1: Objects ACTIVITY Reset Define a method named roleOf that receives the name of an actor and returns that actor's role. If the
JavaScript code

CHALLENGE6.7.1: Objects ACTIVITY Reset Define a method named roleOf that receives the name of an actor and returns that actor's role. If the actor is not in the movie return "Not in this movie.". Ex: roleOf( Viggo Mortensen) returns "Aragorm" 1 var movie // Code will be tested with different actors and movies name: "The Lord of the Rings: The Fellowship of the Ring", director: "Peter Jackson", composer "Howard Shore", 5cast: "Elijah Wood": "Frodo Baggins", "Sean Astin": Samise Gamgee", "Ian McKellen": "Gandalf", "Viggo Mortensen":"Aragorn", "Orlando Bloom": "Legolas", "Christopher Lee "Saruman" 1e 12 13 14 Your solution goes here/ 15 16 ); 2 Next Feedback
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
