How do I count the amount of fizz, buzz and fizzbuzz? I'm not sure how to do it!!
<!DOCTYPE HTML>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script>
var FizsBuzzOutput = ''
var FizzCount = (i++)
var BuzzCount =
var FizsBuzzCount =
//Loop through numbers from 1 tp 100
//Write them oput to the screen
for ( var i=1; i < 100; i++ ) {
// document.write("<br />");
//If the number is divisable by 3 then instead of writing the number, write "Fizz"
// $( "body" ).append( );
if (i % 15 == 0){
// document.write("FizsBuzz, ")
FizsBuzzOutput += "FizsBuzz, "
}
else if ( i % 3 == 0 ){
//document.write("Fizz, ")
FizsBuzzOutput += "Fizz, "
}
else if (i % 5 == 0){
//document.write("Buzz, ")
FizsBuzzOutput += "Buzz, "
}
else {
//document.write(i + ', ')
FizsBuzzOutput += i + ', '
}
}
document.write( FizsBuzzOutput )
</script>
</head>
<body> </body>
</html>