From 1d7e4115c640f4448238560088151c4717264bd6 Mon Sep 17 00:00:00 2001 From: Donald Wasserman Date: Tue, 6 Aug 2019 13:35:50 -0400 Subject: [PATCH] I don't think i've ever written a real while loop --- hello.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hello.js b/hello.js index 487c0b1..ccdc27f 100644 --- a/hello.js +++ b/hello.js @@ -13,4 +13,12 @@ class MyClass { mungeMoreData(data) { return this.mungeData(data) * data; } + + aLongLoop(){ + let i = Math.floor(Math.rand() * 10); + + while (i < 7) { + console.log('This is fun'); + i++; + } }