Home | HTML | JavaScript | DOM | Data Types | JS Debugging |
%%html
<html>
<head>
</head>
<body>
<script>
function checkscores(playerOne, playerTwo) {
if(playerOne > playerTwo)
{
console.log("Player One Wins!");
}
else if(playerOne < playerTwo)
{
console.log("Player TWo Wins!");
}
else {
console.log("It's a Tie!");
}
}
</script>
</body>
</html>