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

JavaScript code CHALLENGE6.7.1: Objects ACTIVITY Reset Define a method named roleOf that

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

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!