Define a method named roleOf that takes the name of an actor as an argument and returns that actor's role. If the actor is not in the movie return "Not in this movie.". Ex: roleOf ("Jessica Chastain") returns "Murph". Hint: A method may access the object's properties using the keyword this. Ex: this. cast accesses the object's cast property.
+5
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Define a method named roleOf that takes the name of an actor as an argument and returns that actor's role. If the actor is not in the movie ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Home » Computers and Technology » Define a method named roleOf that takes the name of an actor as an argument and returns that actor's role. If the actor is not in the movie return "Not in this movie.". Ex: roleOf ("Jessica Chastain") returns "Murph".