I have just started coding HTML and JavaScript. Can somebody please help? I looked on multiple sites to see why this wasn't working, and all of the other functions that this script refers to are completely working. Here is what I need to work, a simple online team quiz game:
<html>
<script>
function teamgame(){
alert("Hello! First, we need to know how many players are participating.")
var players=prompt("How many players are there? The maximum is 25!")
var teams=prompt("How many are on each team? Make sure your number splits evenly!")
alert("Make sure to number your teams, when their number comes up it is their teams turn! ex. Round 15/15 is group 15's turn!")
alert("Also, please make sure that you realise that the rounds count down, for example, round 15/15 is the start, round 1/15 is the end.")
var rounds=(players/teams)
var initrounds=(players/teams)
for (; rounds < 0; rounds--){
alert("ROUND", rounds, "/", initrounds)
if(players<26) quizme()
else alert("The maximum amount of players are 25!")
}
}
</script>
</html>