Skip to content

Commit 5737acf

Browse files
Merge pull request #62 from nextreleaseio/dw
I don't think i've ever written a real while loop
2 parents 74873dc + 1d7e411 commit 5737acf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hello.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,12 @@ class MyClass {
1313
mungeMoreData(data) {
1414
return this.mungeData(data) * data;
1515
}
16+
17+
aLongLoop(){
18+
let i = Math.floor(Math.rand() * 10);
19+
20+
while (i < 7) {
21+
console.log('This is fun');
22+
i++;
23+
}
1624
}

0 commit comments

Comments
 (0)