JSFiddle - React, Tailwind, and code Playground

by Addison Riley

JavaScript

var user = prompt("You have a test, what do you want to do?", "study, work, or procrastinate.");
switch(user) {
    case 'study':
    var fastt = prompt("You passed, and got promoted to an honors class, but you dont know how to get there... Ask for help?", "yes or no").toUpperCase();
    var fast = alert("You cant find your class and get mistaken for ditching school and get expelled. The end");
    break;
        var agile = alert("You get help and find the room and you go in...")
        if(fast === 'no' && agile === 'yes') {
            alert("a");
        }
        else {
            alert("Congrats, you are an honors student!...... Oh and you also win, theres that...");
        }
        break;
    case 'work':
    alert("You work on other homework but never get around to studying for your test. After working you start to procrastinate.. Oh no!");
/*    	var verbs = {"school": 1, "space": 2, "nap": 3};
function makeChoice() {
    var args = prompt("You work on other homework but never get around to studying for your test, you pass every class except for the one that you had the test on. Do you want to go back to high school, go to space, or take a nap", "school/space/nap").split(" ");
    var cond = verbs[args[0]];
    if (cond === 1) {
        alert("You failed and dropped out of high school. Years later you go back...");
        return false;
    }
    else if (cond === 2) {
        alert("You passed the test and turned your life around. Good Job!");
        return false;
    }
    else if (cond === 3) {
        alert("You succsefully steal a jet ski but you realize that you dont know how to drive one, then the police corner you into a dock, and you get arrested... The End... Never procrastinate.");
        return false;
    } else {
        alert("English, do you speak it?");
        return true;
    }
}*/
    case 'procrastinate':
    	var verbs = {"procrastinate": 1, "study": 2, "jetski": 3};
function makeChoice() {
    var args = prompt("You are...