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
Andrej [43]
3 years ago
10

1. Declare a variable named num with an

Engineering
1 answer:
FrozenT [24]3 years ago
7 0

The code to

  • Declare a variable and increment with a while loop until the variable is not less than 5
  • Create a function that returns the product of two numbers
  • Uses the new keyword to create an array

were written in JavaScript and are found in the attached images

<h3>Declaring a variable</h3>

The first code declares a variable called num and gives it an initial value of 0. It then enters a while loop that lauches a message box (using <em>window.alert</em>) to print the message "<em>Keep going</em>" as long as num remains less than 5.

If nothing is done within the loop to increment num towards the value 5, the loop will go on endlessly notifying the user to "<em>Keep going</em>".

So, an increment of 1 was added to the loop body to increment the variable num. This makes sure the loop terminates.

<h3>Creating a function that returns the product of two numbers</h3>

Here, a function was created that receives two arguments (n1  and n2), then returns the product (n1 * n2)

<h3>Declaring an Array</h3>

This last code segment creates an array using the new keyword. The new keyword is generally used in constructing objects.

In this case the object constructed is an array having three strings;

  • my <em>first name</em>
  • my <em>nickname</em>, and
  • my <em>last name</em>

See another solved JavaScript problem here brainly.com/question/23610566

You might be interested in
What is clearance? What is backlash? What is interference? Explain briefly.
Anton [14]

Explanation:

Clearance:

For easy matching  and dis matching  of  hole and  shaft we use size of hole little bit more than the size of shaft and this difference in size is called clearance.

Backlash:

  It is the clearance between the two mating gear to avoids failure of gears.Actually when temperature of gears increases then at the same time the size of gear also increases ,due this there is a possibility foe jamming of gears so to avoids this backlash is provides.

Interference:

  When two gears are matting then addendum of one gear inters into the deddendum of another gear and due to this gears get jam .This phenomenon is called interference.

5 0
3 years ago
Chemical engineering got is unofficial start around the time of the __________ __________ ________.
Yuri [45]
World war II i think
6 0
4 years ago
A 50kg block of nickel at 90°C is dropped into an insulated tank that contains 0.5 m3 of liquid water at 25°C. Determine the fol
Valentin [98]

Answer:

a).Control volume

b). C_{nickel} = 502.416 J/kg-K

c).  C_{water} = 4.187 kJ/kg-K

d). T_{2} = 87.91°C

Explanation:

a). It is a control volume system because mass is varying in the system.

b). Specific heat of nickel is C_{nickel} =   502.416 J/kg-K

c). Specific heat of water is  C_{water} = 4.187 kJ/kg-K

d).We know that

   net  energy transfer = change in internal energy

m_{nickel}\times c_{nickel}(T_{2}-T_{nickel})=m_{water}\times c_{water}(T_{2}-T_{water})

m_{nickel}\times c_{nickel}(T_{2}-T_{nickel})=(volume_{water}\times density_{water})\times c_{water}(T_{2}-T_{water})

50\times 502.416\times (T_{2}-90)=(0.5\times 1000)\times 4.187\times (T_{2}-25)

25120.8\times (T_{2}-90)=2093.5\times  (T_{2}-25)

T_{2} = 87.91°C

6 0
3 years ago
Read 2 more answers
Who engineered the first satalite on the moon before the bible was created<br>​
Ganezh [65]

Explanation:

Apollo 8 Genesis reading

On Christmas Eve, December 24, 1968, the crew of Apollo 8 read from the Book of Genesis as they orbited the Moon. Astronauts Bill Anders, Jim Lovell, and Frank Borman, the first humans to travel to the Moon, recited verses 1 through 10 of the Genesis creation narrative from the King James Bible.[1] Anders read verses 1–4, Lovell verses 5–8, and Borman read verses 9 and 10.

6 0
3 years ago
Which of the following is not a task electricians typically do when maintaining a building’s electrical system?
Scorpion4ik [409]

Answer:replace insulation to help control...

Explanation:

Thats a insulation workers job

4 0
3 years ago
Other questions:
  • During the collision, is the magnitude of the force of asteroid A on asteroid B greater than, less than, or equal to the magnitu
    11·2 answers
  • As an input signal drives the base voltage in a positive direction, base current will_____ and collector current will _____.
    5·1 answer
  • 70 POINTS!!!!Showing results for Select the correct images. James is planning on registering for a course in electrical engineer
    5·2 answers
  • What is the activation energy (Q) for a vacancy formation if 10 moles of a metal have 2.3 X 10^13 vacancies at 425°C?
    9·1 answer
  • A cylindrical metal specimen having an original diameter of 11.34 mm and gauge length of 53.3 mm is pulled in tension until frac
    7·1 answer
  • Assuming Stokes behavior, calculate the terminal settling velocity in standard air () for the following particles: (a) diameter
    5·1 answer
  • 4.
    10·1 answer
  • The beam below will be subjected to a live load of 600 lb/ft, a concentrated live load of 25 kip, and a dead load of 300 lb/ft.
    15·1 answer
  • 1. ¿Cómo esta simbolizada la Cena en el Antiguo testamento?
    11·1 answer
  • Drag the tiles to the boxes to form correct pairs. Identify the designations of the three employees in an automobile company fro
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!