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

find the number of distinguishable permutations for the word MAGNETIC
Jomo Kenyatta caused discontent during his rule in Kenya by
if a persons blood lacked platelets, what process could not take place?????????
how many parallel lines does a triangular prism have
draw a diagram like the one below.List examples of how geography determined Rome's location
When beginning a cardiorespiratory training regimen, it's best to plan for _______ sessions per week. A. five to seven B. two to three C. three to five D. on
How did the invention of agriculture affect human birth and death rates? How did it affect human population growth?
Given your newly-found knowledge of the Atlantic slave trade, what do you consider to have been the most important contexts in its development and demise?
sound with a frequency above 20000 hertz
What happens if a hypothesis is false?