Skip to content

Commit 25ae88c

Browse files
Add a while program
1 parent c6a0ae9 commit 25ae88c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
console.log("and again");
2+
console.log("and again");
3+
console.log("and again");
4+
console.log("and again");
5+
console.log("and again");
6+
7+
// as //
8+
9+
while
10+
(true) {
11+
console.log("and again");
12+
}
13+
14+
// it's crashes the program 'cause it's a infinite loop
15+
16+
while
17+
(false) {
18+
console.log("Skip me!");
19+
}
20+
21+
while (true) {
22+
console.log("Hi there!");
23+
}
24+
25+
while (true) {
26+
console.log("To infinity,");
27+
console.log("and Beyond!");
28+
}

0 commit comments

Comments
 (0)