-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfizz-buzz.html
37 lines (28 loc) · 985 Bytes
/
fizz-buzz.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html lang="en">
<head>
<title>Fizz Buzz</title>
<meta charset="utf-8" />
</head>
<body>
<h1>Fizz Buzz</h1>
<p>We will count from 1 to 30, using the following rules:</p>
<ul>
<li>If the number evenly divides by 3 replace it with "Fizz"</li>
<li>If the number evenly divides by 5 replace it with "Buzz"</li>
<li>If more than one rule applies, output all replacement words on the same line.</li>
</ul>
<h2>Original Solution</h2>
<p>Original in-class code logged to the Dev Tools console. Check there for original output.</p>
<h2>Improved Solution</h2>
<p>Improved code allows you to input the number to count to and writes to a list below.</p>
<form>
<label for="max">Max:</label>
<input id="max" type="number" min="1" max="250">
<input type="button" id="btn-count" value="Go!">
</form>
<div id="output"></div>
<script src="fizz-buzz-console.js"></script>
<script src="fizz-buzz.js"></script>
</body>
</html>