Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var answer = prompt("What sport do you like?");
- switch(answer) {
- case 'basketball':
- console.log("Oh. Fine. I think you will ne Michael Jordan");
- break;
- case 'football':
- console.log("That's great. Definitely you will be Cristiano Ronaldo");
- break;
- case 'tennis' :
- console.log("I think you will not be worse than Rafael Nadal")
- break;
- default:
- console.log("That's also great.")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement