estradaangelic80
estradaangelic80 estradaangelic80
  • 12-11-2020
  • Computers and Technology
contestada

What will be displayed in the console when the following program runs?

var count = 0
while (count != 5){
console.log(count);
count = count + 2;
}

Respuesta :

b1nary
b1nary b1nary
  • 12-11-2020

Answer:

The integer, count, will be stuck in a infinite while loop, and the console will keep adding 2 to count, so it'll look something like this.

0

2

4

6

8

10

12

14

and so forth...

Explanation:

The while loop will never stop because count can not equal to 5 because you can't add 2 to another multiple of 2 to get 5.

Answer Link
srikard0526 srikard0526
  • 09-02-2021

Answer:

infinite loop

Explanation:

Answer Link

Otras preguntas

During the Civil War, some accused Lincoln of ignoring the Constitution when he __________. A. restricted free speech B. ordered a naval blockade of the South
Question 2 options: 2(3x + 5 ) = 6x + 10
Part A a national achievement test is administered annelida to third graders. The test has a mean score of 100 and a standard deviation of 15. if Jane z-score i
You walk at a speed of 1.429m/s. How far could you walk in 10 MINUTES? Show your work!
hiiii friends can someone is here live​
Shravan is ten years older than Gaurav’s age. Five years ago, one –seventh of shravan’s age was equal to one- fifth of Gaurav’s age. Find their present ages.​
What is the equation for this graph in standard form
What is ( x + y + 2 )( y + 2 )?
How many square feet of outdoor carpet will we need for this hole?
what is 5+5-2 please for 25 points i neefg help