1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sindrei [870]
3 years ago
11

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 i

n 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.
Computers and Technology
1 answer:
dusya [7]3 years ago
4 0

Answer:

var movie = {

   // Code will be tested with different actors and movies

   name: "Interstellar",

   director: "Christopher Nolan",

   composer: "Hans Zimmer",

   cast: {

       "Matthew McConaughey": "Cooper",

       "Anne Hathaway": "Brand",

       "Jessica Chastain": "Murph",

       "Matt Damon": "Mann",

       "Mackenzie Foy": "Young Murph"

   },

   roleOf: function (actorName) {

       if (!(actorName in this.cast)) {

           return "Not in this movie.";

       }

       return this.cast[actorName];

   }

};

Explanation:

You might be interested in
Write a python program to find the volume of the pepsi present in the can which is in the shape of cylinder accepting the radius
aleksley [76]

Answer:

Surface Area of a Cylinder = 2πr² + 2πrh (Where r is radius and h is the height of the cylinder).

6 0
3 years ago
Read 2 more answers
Your dad just purchased a new desktop with Windows 8 Professional. He is calling you, informing you that he is unable to remote
VladimirAG [237]
Maybe it's because he hasn't set up the new system once he does that then he should be able to function it but if he is still having trouble then he could call the company or ask for refund
4 0
4 years ago
Hannah decides to burn her video portfolio to a DVD. She wants to hand it over to a movie producer she will meet at a social eve
Gwar [14]
C maybe I am not sure this
7 0
3 years ago
Click this link to view O*NET’s Work Styles section for Petroleum Engineers. Note that common work styles are listed toward the
inysia [295]

Answer:

2 (cooperation )

3 (integrity)

5 (analytical thinking)

6 (dependability)

Explanation:

Good luck! Hope this helps.

4 0
3 years ago
Read 2 more answers
The ____ job functions and organizational roles focus on protecting the organization's information systems and stored informatio
dalvyx [7]

Answer:

Option B i.e., Information security management and professionals is the correct option.

Explanation:

They performs the work duties and operational responsibilities focus on supporting the information systems of the corporation and information stored against threats. IMS is a set of principles and protocols for the structured handling of sensitive information within an enterprise. An ISMS helps to eliminate risks and maintain continuity of operation through pro-actively minimizing the effects of a breach of security.

5 0
4 years ago
Other questions:
  • When you use filter by form to restrict records that appear, you create the filter and then click the ____ button to apply the f
    8·1 answer
  • Which of these is NOT a benefit of trade?
    11·1 answer
  • Can someone buy me eddie van der tabs???
    13·1 answer
  • Given the scenario, before leaving the office, you ask the CIO to provide which formal document authorizing you to perform certa
    11·1 answer
  • Write a function that simulates the roll of a six-sided dice. The name of the function is rollDice. The function accepts no para
    8·1 answer
  • You have searched a database to locate US cities with population counts above 1 million people. You need to present the results
    6·2 answers
  • What can a user do using the Contact Group dialog box? Check all that apply.
    10·2 answers
  • Which manufacturing industry makes semiconductors that are used in a variety of systems?
    8·1 answer
  • What is a shortcut for adding a timeline marker
    14·2 answers
  • Encoding in the information processing theory is the process of _____
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!