var player ="";
var player = prompt("SoMe DaTa").toLowerCase;
if(player==null){
console.log("Bye!");
} else {
console.log(player)
}
var player;
try {
player = (prompt('Hello')).toLowerCase();
console.log(player);
} catch(err) { console.log('bye'); };
var player = (prompt('Hello') || '').toLowerCase();
console.log(player);
var player ='';
var player = prompt('SoMe DaTa');
if(player==null) {
console.log('Bye!');
}
else {
console.log(player.toLowerCase());
}