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

Which statement best explains how stress responses helped our ancestors? a. They encouraged our ancestors to work together b. They helped out ancestors hunt foo
hellllllp i will give brainly to the correct answer
.)Write first person plural face of the verb run​
Which graph shows a linear relationship? Select yes or no. For A B C D
If f(x) = 3x - 4 and g(x) = x2, what is the value of f(3) - g(2)?
someone help me pleaseeee
Which word is a direct object in the following sentence? Once a lion, who was definitely not of the cowardly variety, captured a mouse and was about to eat it.
HELP ASAP PLSS 5 STARS and BRAINLIST (only if both are correct) Use the correct form of "ir" A. Alicia (va, voy, ir) a la escuela B. Nosotros (van, vamos, voy)
what is it please?*mmm,mmjjjjjjn​
Which non-English speaking country had much more territory in the 1700s than it has today?