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
Bas_tet [7]
4 years ago
6

Code Example 2-1 1. var myAge, newAge; 2. myAge = prompt("How old are you?"); 3. myAge = parseInt(myAge); 4. newAge = 18 - myAge

; 5. alert("You will be eligible to vote in " + newAge + " years"); (Refer to Code Example 2-1) What type of data is stored in myAge after line 2 is executed?
Computers and Technology
1 answer:
sammy [17]4 years ago
8 0

Answer: String Data

Explanation: In Javascript, the  prompt() method is used to display a dialog that prompts you to insert an optional message which is basically some text.

The text can be  textual, numerical (as in your example) or both but all this line of the program (line 2) is trying to do is to get data from the user.

It returns a <em>STRING</em> containing the text entered by the user, or null.

Note: The string that is returned cannot be used directly to solve any math until you convert it to an integer. That's what line 3 is for.

You might be interested in
Which tab do you select to change how you see your Word document on screen?
seraphim [82]

Answer:view

Explanation:i just took the test

8 0
3 years ago
Read 2 more answers
50 POINTS How do you express yourself and your creativity through computer science?
Igoryamba

Answer:

1. I express myself through the designing, development and analysis of software and hardware used to solve problems in a variety of business, scientific and social contexts.

2. support the development of general reasoning, problem-solving and communication skills.

3. Through avoiding in repetious tasks and simplifying such works.

3 0
3 years ago
Any please answer this How much resistance is required to gen-erate 50 mA of current from a 5 volt bat-tery?
nasty-shy [4]

Answer:

Calculating Currents: Current in a Truck Battery and a Handheld Calculator ... (b) How long does it take 1.00 C of charge to flow through a handheld calculator if a 0.300-mA current is ...

7 0
3 years ago
If a 60 lb. load is placed on the platform, what will the pressure gauge reading be if the piston area is 5 sq.in? Give your ans
Doss [256]

Answer:

The pressure gauge reading will be;

12 psi

Explanation:

The question relates to relationship of pressure and area

The given parameters for the measurement are;

The weight of the load = 60 lb

The required area of the piston = 5 in.²

Pressure exerted by a force can be defined as follows;

Pressure =  \dfrac{Force}{Area}

The weight of the load = The force applied by the load

Therefore;

Pressure =  \dfrac{Force}{Area} = \dfrac{60 \ lb}{5 \ in.^2}  = 12\dfrac{lb}{in.^2} = 12 \ psi

The gauge reading will be 12 psi.

7 0
4 years ago
Read 2 more answers
How do you enlarge your screen if there is no control panel? Need desperate help!
igor_vitrenko [27]
You hit ctrl than the plus/equal sign Hope that helped! 
4 0
3 years ago
Other questions:
  • Which of the following functions and expressions will convert the ASCII character "Z" to its numeric equivalent ASCII code?
    7·1 answer
  • What does the picture indicate on the famous book “Dawn of the century”?​
    10·1 answer
  • What component has the job of managing data as it flows into and out of the places it needs to go?
    11·2 answers
  • Why might a variable used for output have to be of a different type then a variable used for input? ​
    12·1 answer
  • Which type of financial institution typically has membership requirements?
    14·1 answer
  • Joe runs a handyman service. He enjoys writing and keeping up on the latest trends. He wants to share this information with his
    14·1 answer
  • Who plays xbox one offline and knows some multiplayer games that can be played offline.
    15·2 answers
  • How did the ENIAC change computing?<br> how did the eniac change computing
    14·1 answer
  • Sftp uses which mechanism to provide security for authentication and data transfer?
    7·1 answer
  • The standard naming convention prefix tag for a query used to identify the object type is?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!