//sample solution
var topThree = "false"; //will fail since boolean is expected instead of a string
var winner = "true"; //will fail since boolean is expected instead of a string
var result;
if (topThree === false) {
result = "Sorry, empty handed";
}
else {
if (winner === true) {
result = "Gold!!!";
} else {
result = "Not bad! Got a medal!";
}
}
No comments:
Post a Comment