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

What does double brackets mean in calculus?
How was a town in medieval Europe able to become independent of a feudal lord
These are all highly contagious foodborne illnesses that result from biological contaminants, except:
The _____ is the main link between the nervous system and the endocrine system.
benefits and dangers of using strikes to help workers achieve their goals.
When you delete an e-mail in Gmail, where is it moved to?
Why did the political chaos of the Period of the Warring States give rise to philosophies such as Confucianism, Legalism, and Daoism?
Critics claim that this type of economic system hinders economic growth. A. Free market economy B. Laussez -faire economy C. Socialist D. Capitalist.
Which expression is the correct translation of the following word phrase? "the product of 4 and a number is increased by 7" Question 9 options: x divided by 4 p
What agents of transmission have taken the place of nomadic peoples in recent centuries?