<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
</body>
</html>
alert("WARNING: THIS WILL BE THE MOST EPIC GAME YOU PLAY IN YOUR LIFE! There are 12 bad endings, 3 Final endings, 1 Heroic Final Ending, and 1 Evil Final Ending. Try to collect them all!")
var response = prompt("In front of you are two paths... a distant town or a super spooky spider-infested cave. Which do you choose? Question: Spider Cave or Town?")
if (response === "Town") {
var response = prompt("Yay you got to the town. You're pretty sleepy, so you decide to take a nap. Where should you take your snooze? Question: Brick Road or Hotel?")
}
else if (response === "Spider Cave"){
alert("You went in to the cave and were eaten by a spider. What did you expect? (BAD ENDING #1: Devoured)")
}
if (response === "Hotel") {
var response = prompt ("You got some great sleep! Do you wish to stay in the town longer or venture out into the outside world? Question: Stay or Leave?")
}
else if (response === "Brick Road"){
alert("You were ran over. Fortunately, you were asleep, so it didn't hurt as bad. (BAD ENDING #2: Trampled)")
}
if (response === "Stay") {
var response = prompt ("You stay in the town longer and start to like it. You kind of want to stay there for a while and get a job. Question: Get A Job or Do Not Get A Job?")
}
if (response === "Do Not Get A Job"){
alert("You do not get a job and you become a lazy boy. You are now a couch potato. (BAD ENDING #3: Couch Potato)")
}
else if(response === "Get A Job"){
var response = prompt("You have two options for a job... you could be a humble baker or a traveling circus clown. Question: Humble Baker or Circus Clown?")
}
if (response === "Humble Baker"){
alert("You now become a humble baker and you are very happy with life from now on. (FINAL ENDING #1: The Humble Baker)")
}
else if (response === "Circus Clown"){
var response = prompt("Now you are a circus clown. Do you want to perform in the funnies or do you want to work with the animals? Question: Animals or Funny?")
}
if (response === "Animals"){
alert("You were mauled by a tiger. Fortunatly, the audience thought it was an act and still cheered. (BAD ENDING #4: Nice Kitty...)")
}
else if(response === "Funny"){
var response = prompt("You decide to tell a joke. Should you wing it or pull out your trusty Joke Book. Question: Wing It or Joke Book?")
}
if (response === "Wing It"){
alert("You were very funny and the audience loved you! You are now a famous comedian. (FINAL ENDING #2: Funny Man)")
}
if (response === "Joke Book"){
alert("The audience booed you into depression. You become the Joker from the movie joker. (FINAL ENDING #3: The Joker From The Movie Joker)")
}
else if(response === "Leave"){
var response = prompt("You see a scroll on the ground. It looks very epic. Question: Pick It Up or Ignore It")
}
if (response === "Ignore It"){
alert("You didn't pick up the scroll. Nothing bad happened, but you also didn't progress the plot. (BAD ENDING #5: True Neutral)")
}
else if (response === "Pick It Up"){
var response = prompt("On the scroll is a magical super epic quest. It is a super epic and cool map to a distant castle. You are expected to deliver a pizza to there. Do you comply? Question: Comply or Don't Comply")
}
if (response === "Don't Comply"){
alert("You choose to not comply and move on with your life. You now live with the permenant curiosity clawing away at your mind but it is too late to accept the quest and see what happens. (BAD ENDING #6: Curiosity)")
}
else if (response === "Comply"){
var response = prompt("You decided to deliver the pizza, but along the way a gang of pizza bandits attempt to steal your pizza. Your mind is starting to race. Question: Fight or Flee")
}
if (response === "Flee"){
alert("Coward. (BAD ENDING #7: Shameful Retreat)")
}
else if (response === "Fight"){
var response = prompt("The pizza is safe... but the bandits' blood is on your hands... Question: Mourn or Move On")
}
if (response === "Mourn"){
alert("We don't have time to mourn. (BAD ENDING #8: Sad)")
}
else if (response === "Move On"){
var response = prompt("You said Hasta La Pasta to the bandits and advanced to the castle. You soon coome across a tall fence. Question: Hop The Fence or Walk Around")
}
if (response === "Hop The Fence"){
alert("I failed to mention the fence was very spiky. My bad. (BAD ENDING #9: Impaled)")
}
else if (response === "Walk Around"){
var response = prompt("You get to the castle doors after all your adventuring, and you feel a weird devious presence. Question: Drop Off The Pizza And Run or Knock")
}
if (response === "Join Him"){
alert("You are now a threat to the world and everyone in it. (EVIL FINAL ENDING: Rule The World)")
}
if (response === "Drop Off The Pizza And Run"){
alert("You dropped off the pizza and ran, unfortunatly you forgot to knock, so he never knew it was there. (BAD ENDNG #10: Forgotten Pizza)")
}
else if (response === "Knock"){
var response = prompt("You knock on the doors and are greeted by Dr. Dastardly, the greatest villian in all the world. He is impressed with your work and gives you a choice. Question: Join Him or Perish")
}
if (response === "Perish"){
var response = prompt("You choose to perish, and then you realize you don't have to listen to him and try to beat him up. He then prepares a giant laser beam. Question: Dive Out Of The Way or Stand Still")
}
if (response === "Stand Still"){
alert("I mean... what did you think would happen? (BAD ENDNG #11: Ouchy Wawa)")
}
if (response === "Dive Out Of The Way"){
var response = prompt("You dive out of the way and get close enough to him to beat him up. Question: Save The World or Do Nothing")
}
if (response === "Do Nothing"){
alert("??? (BAD ENDNG #12: Just Standing Here)")
}
if (response === "Save The World"){
alert("You beat him up and he cries. By doing this the world is saved. You're a hero! (HEROIC FINAL ENDING: Save The World)")
}
if (response === "Eric"){
alert("What? How? Why? How did you get here? (ERIC ENDING?)")
}
else {
alert("Uh... you probably typed something wrong. Make sure you type it exactly how it is in the problem.")
}
Output
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |