Skip to content

Commit cf0ff44

Browse files
committed
do while
1 parent 8c8fe31 commit cf0ff44

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

19_do_while.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// check condition the last
2+
3+
let start = 0;
4+
5+
// do {
6+
// // here will first print and
7+
// // after here check condition for the last
8+
// console.log(start);
9+
// start++;
10+
// } while (start > 20);
11+
12+
do {
13+
// here will first print and
14+
// after here check condition for the last
15+
console.log(start);
16+
start++;
17+
} while (start < 20);

0 commit comments

Comments
 (0)