mishapod,
function golfScore(par, strokes) {
if(strokes == 1) return 'Hole-in-one!';
strokes -= par;
switch (strokes) {
case -2: return 'Eagle'
case -1: return 'Birdie'
case 0: return 'Par'
case 1: return 'Bogey'
case 2: return 'Double Bogey'
default: return 'Go Home!'
}
}
alert(golfScore(5, 9));