Create a function called build person

Assignment Help Computer Engineering
Reference no: EM132170634

Using Javascript,

Create a function called build person. It will not have any input parameters, but it will return an object that represents a person.

Inside this function, use individual prompt statements to ask the user for the family member's: full name, age, relationship (to you), favorite color, and favorite food.

For example: Joe Smith, 79, grandpa, brown, prunes. Collect these bits of data in local variables inside the function. Example: var fullName = prompt("What is their full name?");

Once you have variables that contain each of these items, create a new object that contains these values and add them to the object. Then, return the object from the function.

Reference no: EM132170634

Questions Cloud

Plot a graph where the horizontal axis presents the number : Plot a graph where the horizontal axis presents the number m, and the vertical axis presents the number of iterations it takes to end up with 1.
Public influence company revenue : How does real gross domestic product and federal debt held by the public influence company revenue?
What is the price elasticity of demand : Suppose that a monopolist faces a demand curve: Q D = 3375P -3
Write a program that repeatedly prompts the user to match : Using Java, write a program that repeatedly prompts the user to match a capital with the correct state from two checklists.
Create a function called build person : Create a function called build person. It will not have any input parameters, but it will return an object that represents a person.
Create 3 classes and app football player and football team : Create 3 classes, app, football player and football team. The application (app) will use the two other classes (football player and football team).
Create eleven football players using an array : Displays all the information about a team including: name team color, and information on each player in the team and assigns a random score to each team.
Single price monopolist : Suppose that a single price monopolist faces a market demand curve: P = 200 - 4Q
Create a web app that helps a player quickly calculate : The user is presented with a form that asks them to enter their jersey number, their number of completions and the number of attempts.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Identify at least three possible use cases and actors

Create a state transition diagram that describes typical customer states and how they change based on specific actions and events.

  Baseline for the linux system

Describe briefly the purpose of the baseline. Explain the areas of system would you involve in the baseline for your Linux system?

  How windows active directory enhances security

Write a 1-2 page paper in APA format. Describe how Windows Active Directory enhances security in your organization. What, if anything, could be improved?

  Describe the causes for denial of service

Describe the mitigation procedures used to address the difficulties identified in Problem.

  Write down a code segment that will examine a numeric value

write a code segment that will analyze a numeric value provided by the user to determine if he or she is short average

  How can you acquire the digital evidence from the computer

How can you acquire the digital evidence from the computer and which methods of collection would you use and why - would you use any special tools, programs, or methods?

  What functions does a device controller perform

What functions does a device controller perform? How can a cache be used to improve performance when reading data from and writing data to a storage device?

  Explain what is a meant by the term event

Programs written for a graphical user interface have to deal with events. Explain what is a meant by the term "event".

  Design should show each object''s encapsulated methods

make a class diagram (in Visual Studio 2008 C#) based on the following scenario: When constructing classes that will represent objects in a system, it is important to ensure the integrity of those objects and be able to define the types of relatio..

  When the server reboots will the file handle still be valid

When the server reboots, will the file handle still be valid? If so, how does it work? If not, does this violate the principle of statelessness?

  Create a new volume group called vg

Create a new volume group called vg and add the new 20GB physical volume to it. Create 3 new logical volumes within the volume group each 5GB in size.

  Create the context diagram for the system just described

Create the context diagram for the system just described. Create the DFD fragments for each of the four use cases outlined in part a, and then combine them into the level 0 DFD.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd