I need some help. My fizz-buzz code is correct but when my page loads it is not showing. Can someone help what I am missing?
Here is my html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FizzBuzz Challenge</title>
</head>
<body>
<h1>FizzBuzz Challenge</h1>
<p>View FizzBuzz Output</p>
<script type="text/javascript" src="js/FizzBuzz.js"></script
</body>
</html>
Here is my JavaScript code:
function FizzBuzz() {
var display = numCount;
if (numCount % 3 == 0) {
display = ("Fizz");
} else if (numCount % 5 == 0) {
display = ("Buzz");
} else if (numCount % 3 == 0 && numCount % 5 == 0) {
display = ("FizzBuzz");
} else {
console.log(display);
}
}
for (numCount = 1; numCount < 100; numCount++) {
FizzBuzz(numCount);
}