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
IgorLugansk [536]
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("Viggo Mortensen") returns "Aragorn". 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:
gayaneshka [121]3 years ago
5 0

Answer:

var movie = {

   name: "Avengers Endgame",

   director: "Joe Russo",

   composer: "Alan Silvestri",

   cast: {

       "Scarlett Johansson": "Black Widow",

       "Chris Evans": "Captain America"      

   },

   roleOf: function (name) {

       if (typeof (this.cast[name]) !== 'undefined') {

           return this.cast[name];

       } else {

           return "The actor is not part of this movie";

       }

   }

};

     

Explanation:

  • Initialize the movie JSON (JavaScript Object Notation) having the name, director, composer and cast properties.
  • Define a roleOf: function that has a name parameter.
  • Check whether the selected is not equal to undefined and then return that name.
  • Otherwise display this message: "The actor is not part of this movie".
You might be interested in
What does aux stand for on a car remote?
Charra [1.4K]
It means the sound cord, or axu is shot for auxiliary.
7 0
3 years ago
Read 2 more answers
Determining which computer platform (operating system) would be best for a particular student often depends on what the student
leva [86]

Answer: Window OS

Explanation:

Based on the information given, it should be noted that the students who plan to study graphic design should consider the Window OS platform since it is considered to be the industry standard in those fields.

Microsoft Windows, also refered to as the Windows OS, is a computer operating system that's developed by Microsoft to run personal computers. It has the first graphical user interface and also, the Windows OS dominates the personal computer market.

4 0
3 years ago
Can any software run on any processor
jekas [21]

Answer:

Yes.

Explanation:

Your software requires CPU instruction if CPU doesn't provide that instructions the software won't work/run.

hope this helps you

have a great day:)

6 0
3 years ago
Assume that you have 22 slices of pizza and 7 friends that are going to share it (you've already eaten). There's been some argum
xz_007 [3.2K]

Answer:

In Python:

numberOfWholeSlices = int(22/7)

print(numberOfWholeSlices )

Explanation:

For each friend to get a whole number of slices, we need to make use of the int function to get the integer result when the number of slices is divided by the number of people.

So, the number of slice is: 22/7

In python, the expression when assigned to numberOfWholeSlices  is:

numberOfWholeSlices = int(22/7)

Next, is to print the calculated number of slices

print(numberOfWholeSlices )

4 0
3 years ago
What is output by the following code? for x in range(7, 16): print(x * 2, end=" ") Group of answer choices 14 16 18 20 22 24 26
madreJ [45]

Input:-

\tt for\:x\:in\:range(7,16):

\tt print(x*2,end"")

Output:-

\tt 14,16,18,22,24,26,28,30,32

The loop will start from 7×2=14 to 16×2=32

8 0
3 years ago
Other questions:
  • Jane works in the sales department of a service company. She has impressive interpersonal skills and always turns up for work on
    11·2 answers
  • I'm taking a class on how to make a movie, and it offers some apps that would be helpful in the process. The thing is, I don't h
    9·2 answers
  • Which vendor certification would you think is the most relevant in the field of IT security? Why?
    7·1 answer
  • What types of storage can be used to access your data on another computer?
    7·2 answers
  • Can anyone help with this graded assignment for computer fundamentals
    10·1 answer
  • Passwords are usually alphanumeric and usually cannot contain spaces or ________.
    10·2 answers
  • A(n) _____ is a network connection device that can build tables that identify addresses on each network.
    10·1 answer
  • Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    12·1 answer
  • How much money did Uta initially invest?$180.00$320.00$352.48$471.70
    14·1 answer
  • What is a presentation program? Name any<br> presentation programs.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!