JSFiddle - React, Tailwind, and code Playground

by taoist

JavaScript

var direction;
var runOrFightPenguin;
var mapOrWeapon;



var direction = prompt("You are a ugly troll about to go on an adventure you can go north or south. Type north or south");

if(direction === "north"){
    runOrFightPenguin = prompt( "you are confronted by a penguin. type run or fight");
    
}


else if( direction === "south"){
mapOrWeapon = prompt("you are confronted by a man who offers you a map or a weapon. Type weapon or map")
}