Skip to content

Commit c9cc2bb

Browse files
committed
Created while loop.
1 parent 9eee991 commit c9cc2bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

answer.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
// *** YOUR ANSWER BELOW ***
2+
function countDown(int) {
3+
while(int > 0) {
4+
console.log(int);
5+
int -= 1;
6+
}
7+
}
8+
9+
countDown(20);

0 commit comments

Comments
 (0)