1. Declare a variable named num with an
initial value of 0. Create a while loop that
will print "Keep going" as long as the value
of num is less than 5. Use window.alert()
for displaying the output.
2. Create a function named showProd that
returns the product of n1 and n2.
3. Using the new keyword, create an array
named info with three (3) values: your first
name, your nickname, and your last name.

Answers

Answer 1

The code to

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

were written in JavaScript and are found in the attached images

Declaring a variable

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 window.alert) to print the message "Keep going" 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 "Keep going".

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

Creating a function that returns the product of two numbers

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

Declaring an Array

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 first namemy nickname, andmy last name

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

1. Declare A Variable Named Num With Aninitial Value Of 0. Create A While Loop Thatwill Print "Keep Going"
1. Declare A Variable Named Num With Aninitial Value Of 0. Create A While Loop Thatwill Print "Keep Going"
1. Declare A Variable Named Num With Aninitial Value Of 0. Create A While Loop Thatwill Print "Keep Going"

Related Questions

A periodic digital waveform has a pulse width 25 and a period of 150 . Determine the frequency and the duty cycle

Answers

The frequency  is 6.67 kHz and the duty cycle is:16.67%.

Frequency and duty cycle

Given:

Pulse width=25

Period=150

Frequency:

Frequency=1/(150×10^-6)

Frequency=1/0.00015

Frequency=6.666 kHz

Frequency=6.67 kHz (Approximately)

Duty cycle:

Duty cycle=(25×10^-6)/ (150×10^-6)×100%

Duty cycle=16.67%

Therefore the frequency  is 6.67 kHz and the duty cycle is:16.67%.

Learn more about Frequency and duty cycle here:https://brainly.com/question/16030651

#SPJ1

For flow of a liquid metal through a circular tube, the velocity and

temperature profiles are u(r)=2Um[1-(r/ro)2] and T(r) - Ts

= C2 [1 – (r/r0)2],respectively, where C2 is constant. What is the value of the Nusselt

number NuD at this location?

Answers

Answer:

Known: Form of the velocity and temperature profiles at a particular axial location for flow in a circular tube. Find: Nusselt number at the prescribed.

Explanation:

9. An automobile's oxygen sensor output needs
to be checked. Technician A uses a digital
voltmeter to check this sensor's output.
Technician B uses an analog ohmmeter to
check this sensor's output. Who is right?
(A) A only.
(B) B only.
(C) Both A and B.
(D) Neither A nor B.

Answers

Answer:

the answer is Letter C

Explanation:

DON'T TRULY TRUST ME PLEASE..

All forms of energy can be transformed into what form of energy, often times as waste?

Answers

I think thermal energy. It tends to be the final form off all energy equations in physics.

Determine the mass density of an oil if 0.3 tonnes of the oil occupies a volume of 4m.

Answers

Answer:

Do you mean 4m^3 and 3.0 tones?

Explanation:

solution:

Mass = m = 3.0 tones

- 1 ton = 1,000 kg

= 3.0 × 1,000

= 3,000 kg

volume = v = 4m^3

Required:

Mass density of oil = p = ?

We know that;

[tex]p = \frac{mass}{volume} = \frac{m}{v} = \frac{3000}{4} = 750kg |m^{3} ans [/tex]

The answer is:

750kg / m^3

A double-threaded Acme stub screw of 2-in. major diameter is used in a jack having a plain thrust collar of 2.5-in. mean diameter. Coefficients of running friction are estimated as 0.10 for the collar and 0.11 for the screw.

a. Determine the pitch, lead, thread depth, mean pitch diameter, and lead angle of the screw

b. Estimate the starting torque for raising and for lowering a 5000-lb load.

c. What is the efficiency of the jack when raising the load?

d. Would the screw overhaul if a ball thrust bearing of negligible friction were used in place of the plain thrust washer?

Answers

This is the answer for the question

In a modern industrial plant the most likely polyphase power system in use is a/an blank system

Answers

Answer:

  three-phase

Explanation:

2-phase, 3-phase, and 6-phase systems are in use. The most common of these is 3-phase.

A modern industrial plant most likely uses a 3-phase system.

__

Additional comment

Serious research began on 6-phase power transmission systems in 1973. They have been shown to increase power transfer, and to reduce corona, magnetic fields, and audio noise compared to 3-phase systems. However, they are not in widespread industrial use.

Other Questions
cris ce verbe au pass compos:J'cris. Solve the following quadratic equation for all values of x in simplest form.2(5x + 9)2 + 10 = 28 Read the quote from paragraph 9, which refers to a famous proverb.But, alas, alas! Pride goes before a fall, and the revengeful Snow turned the tables.desk.Select two quotes from the passage where this same theme is conveyed."Annoyed by what she could only see as rudeness, Amy quickly retorted, letting Jo know that she only wished she could beas fortunate as Laurie to be afforded a fraction of the money he must have spent on his horse." (paragraph 5)o the"Wanting desperately to fit in and enjoy a little luxury, Amy had indebted herself at least a dozen pickled limes." (paragraph6)khertrivialne, andn the"You are getting to be rather conceited, my dear, and it is quite time you set about correcting it. You have a good manylittle gifts and virtues, but there is no need of parading them, for conceit spoils the finest genius."" (paragraph 17)"Her mother informed her that, yes, he was quite accomplished, having been afforded an excellent education." (paragraph20)"I see. It's nice to have accomplishments and be elegant, but not to show off or get perked up, said Amy thoughtfully."(paragraph 22) nitrogen dioxide is a major component of smog which type of chemical reaction creates this product?a. synthesis reactionb. replacement reactionsc. combustion reactionsd. decomposition reaction PLS HELP ILL MArk BRAINLIEST!! what is the only continent located in all four hemispheres? Multiply. Enter your answer as a simplified mixed number. -4(3/14) Find all the numbers for each shape The distance-time graph for a vehicle standing on a road side will be Type 1 diabetes is caused by overweight or obesity. an autoimmune disorder. induced by inappropriate lifestyle choices. the most common diabetes disorder. The complete subject of the following sentence is_____, and the complete predicate is_____.Bill and Mark played ping-pong.PLZZZ HELP ME Events d and e are independent, with p( d ) = 0. 6 and p( d and e ) = 0. 18. Which of the following is true?. can be applied heavilyto produce dark areasand lightly for otherareasmust be fixed with asolution of thinnedvarnish to preventsmearing after thedrawing is complete Why is the slope the same on a line when different points are used to identify the slope? Your salary is one thing to consider when reviewing a job offer but benefits are also important. Which of the following would NOT be a part of your benefits package? What was the reason forRutherford B. Hayes winning the1876 presidential election?A. Hayes was named president by congress inexchange for the South getting new railroads andfactories.B. Tilden agreed to lose if he could be appointedvice president.C. Hayes had an overwhelming majority ofpopular votes.D. There was no Democratic Party nominee tochallenge Hayes. Halophiles live in areas of ____salt concentration. Carls cats weigh a total of 12 kg (kilogram). Bo weighs 512kg. Tommy weighs 213kg. How much does Suzi weigh? Estimate: now what is suzi exact weight Find Suzis exact weight: What do I need to know?I need help on this question please Date: December 12, 2021Merry Christmas, everyone! Since Christmas Vacation is around the corner, I think everyone deserves a break. So here are some Xmas Trivia questions to get you all in the holiday spirit! 1: Buddy the Elf sticks to the four main food groups; candy, candy canes, candy corns, and ____? 2: In the song "Winter Wonderland", what do we call the snowman? 3: Which Hollywood actor played six roles in the movie "The Polar Express"?