Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fizzbuzz
  • Loading branch information
Alex Mueller committed Feb 17, 2020
1 parent dca3f99 commit 9add38e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
2 changes: 1 addition & 1 deletion week-4/index.html
Expand Up @@ -9,7 +9,7 @@
<body> <body>
<h1>Solving FizzBuzz</h1> <h1>Solving FizzBuzz</h1>
<p id="dark">Welcome to the dark side.</p> <p id="dark">Welcome to the dark side.</p>
<p id="output"> <p id="fizz-output">
Output: Output:
<br> <br>
</p> </p>
Expand Down
2 changes: 1 addition & 1 deletion week-4/js/main.js
Expand Up @@ -10,6 +10,6 @@ for (let i = 1; i < 101; i++) {
normal = false; normal = false;
} }
console.log(normal ? i : rules.join('')); console.log(normal ? i : rules.join(''));
document.getElementById('output').innerHTML += document.getElementById('fizz-output').innerHTML +=
(normal ? i : rules.join('')) + '<br>'; (normal ? i : rules.join('')) + '<br>';
} }

0 comments on commit 9add38e

Please sign in to comment.