Skip to content

Commit

Permalink
fizzbuzz
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
2 changes: 1 addition & 1 deletion week-4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<body>
<h1>Solving FizzBuzz</h1>
<p id="dark">Welcome to the dark side.</p>
<p id="output">
<p id="fizz-output">
Output:
<br>
</p>
Expand Down
2 changes: 1 addition & 1 deletion week-4/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ for (let i = 1; i < 101; i++) {
normal = false;
}
console.log(normal ? i : rules.join(''));
document.getElementById('output').innerHTML +=
document.getElementById('fizz-output').innerHTML +=
(normal ? i : rules.join('')) + '<br>';
}

0 comments on commit 9add38e

Please sign in to comment.