0

Var x = 100; while(x>=50){ x-- } x % 7 document.write(x):

Javaseript

5th May 2020, 4:54 PM
Shola Micheal
Shola Micheal - avatar
6 Réponses
+ 2
Shola Micheal because 49%7 = 0 Explanation:- while (x >= 50) { x--; } here while loop will go till x >= 50 and x will decrement by 1 till x >= 50 so when 50 >= 50, then x = 49 because of x-- finally x % 7 = 49 % 7 = 0
5th May 2020, 5:06 PM
A͢J
A͢J - avatar
5th May 2020, 5:13 PM
Shola Micheal
Shola Micheal - avatar
0
Var not valid var is valid
5th May 2020, 4:57 PM
Abhay
Abhay - avatar
0
Pls someone should help me out here
5th May 2020, 4:57 PM
Shola Micheal
Shola Micheal - avatar
0
What do u want to do with that code Tell me in detail
5th May 2020, 4:58 PM
Abhay
Abhay - avatar
0
I dont know how they got zero(o) as an answer......
5th May 2020, 5:00 PM
Shola Micheal
Shola Micheal - avatar