Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

countdown javascript

const startNumber = 10, stopNumber = 0, skip = 1;
for (let i = startNumber; i >= stopNumber; i -= skip) {
	console.log(i);
}
/*
10
9
8
7
6
5
4
3
2
1
0
*/
 
PREVIOUS NEXT
Tagged: #countdown #javascript
ADD COMMENT
Topic
Name
5+1 =