Skip to content

Commit 6a7e2dd

Browse files
add loopingDownward
1 parent 1937014 commit 6a7e2dd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

study/Loops/loopingDownward.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
for (let i = 5; i > 0; i--) {
2+
console.log(i);
3+
}
4+
5+
for (let i = 5; i >= 0; i--) {
6+
console.log(i);
7+
}
8+

0 commit comments

Comments
 (0)