JSFiddle - React, Tailwind, and code Playground

by Andy Mcloughlin

JavaScript

var isItMyBirthday = function () {
    var myBirthday = new Date(1982, 5, 23);
    var isit = prompt("is it my birthday?");
    switch (isit){
    case 'yes':
      var yay = prompt("Happy Birthday!");
        break;
            
    case 'no':
         var aww = prompt("oh ok").toUpperCase();
         var pay = prompt("great, are you paying today?");  
    break;      
    default:
        console.log("im sorry, i dont understand");
    }
    
 for (var dateA = new Date(); !myBirthday(dateA); dateA.setDate(dateA.getDate() + 1)) {
if (dateA.getMonth() == myBirthday.getMonth() && dateA.getDate() == myBirthday.getDate()){
$("#output").text("happy birthday");
}else {

}

}
};

var isTodayAndrewMcloughlinBirthday = function(){
isItMyBirthday();
};