JSFiddle - React, Tailwind, and code Playground

by kazumasa sait

JavaScript

var playerOne = 500;
var playerTwo = 600;
var highScore;

highScore = (playerOne > playerTwo) ? playerOne : playerTwo;

/*
if(playerOne > playerTwo){
    highscore = playerOne;
}else{highscore = playerTwo;
}*/

//alert(highScore);

console.log(highScore);
console.error(highScore);
console.info(highScore);
console.debug(highScore);
console.warn(highScore);