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>nickname</em>, and
See another solved JavaScript problem here brainly.com/question/23610566
The answer is A. Immediately inform her colleague
Answer:
A root-type supercharger works similar to that of an air pump. It pumps air into the intake of the engine. Within the engine cylinder, the compression of the air-fuel mixture takes place. A centrifugal supercharger, works like a turbo, compresses the air in it and then delivers it to the engine.
Answer:
ummmmmmmmmmmmmmmmmmmm no se
Answer:
a
Explanation:
digital identity is the answer