JSFiddle

  • Dragon Slayer

    A Javascript game of chance showcasing the Math.random method

    var slaying = true;
    var youHit = Math.floor(Math.random() * 2);
    var damageThisRound = Math.floor(Math.random() * 5 + 1);
    var totalDamage ...
  • Riddle Me This #2 is the latest revision

    A Javascript riddle game based on your answers.

    
    /*
    !!!!!!!!!!!!!!!!!!!!!!ALERT!!!!!!!!!!!!!!!!!!!!!!!
    
    TO RUN PROPERLY CHANGE THE JAVASCRIPT SETTING TO 
    NO WRAP - IN <HEAD>
    
    1. CLICK JAVASCRIPT GEAR IN THE TOP RIGHT ...</head>
  • Garfield Hates Mondays #8 is the latest revision

    A simple example of an if/else statement in JavaScript

    var dayOfTheWeek = prompt("Excuse me but, what day of the week would it happen to be?");
    
    if (dayOfTheWeek === 'Monday' || 'monday ...