From 90967193682e7cf9ff98f35f8b96d8b9536b7b23 Mon Sep 17 00:00:00 2001 From: Pavel Date: Sun, 20 Oct 2019 12:07:16 +0300 Subject: [PATCH 1/3] First try --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 17cc259..172b8fb 100644 --- a/index.html +++ b/index.html @@ -15,14 +15,14 @@ for(let i = 0; i < 1000; i++) { const node = document.createElement('div'); - if (i % 3 === 0 && i % 2 === 0) { + if (i % 3 === 0 && i % 5 === 0) { node.innerText = 'fizzbuzz'; } else if(i % 3 === 0) { - node.innerText = 'buzz'; + node.innerText = 'fizz'; } - else if (i % 2 === 0) { - node.innerText = 'fizz'; + else if (i % 5 === 0) { + node.innerText = 'buzz'; } else { node.innerText = 'None'; From 39b5af002f24e807f11d2d76599201a9acccf10a Mon Sep 17 00:00:00 2001 From: Pavel Date: Sun, 20 Oct 2019 12:20:40 +0300 Subject: [PATCH 2/3] Final redaction --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 172b8fb..6d79bec 100644 --- a/index.html +++ b/index.html @@ -12,20 +12,20 @@