+ 1
How to increment in java script plz give an example
4 Answers
+ 1
for(var i = 0; i < 10; i++) {
alert(i);
}
var i = 0 -- Creates a variable named 'i'.
i < 10 -- Do this loop as long as 'i' is less than 10.
i++ -- Increment 'i' by 1.
alert(i) -- For each loop, alert variable.
Hoped this helped :)
+ 2
for (var i = 0; i < 10; i++) {
//Your code here...
}
+ 1
Is there is no output
Means
If we increment 1 then output is 2
0
yes this help me lot
Now this i want ...
Thank you sir for your time đđ