JSFiddle - React, Tailwind, and code Playground

HTML

<title>
Ada Gonzalez - Quiz week 2 - functions
</title>
<body>
    <p id="output">Output Field</p>
    
</body>

JavaScript

function isItAdasBirthday()
{
var birthday=prompt("Please enter your birth day","m/d");
var d=new Date();
var month=d.getMonth();
month=month+1; //added 1 since months start at 0
var dayofmonth=d.getDate();


var monthString=month.toString();
var dayString=dayofmonth.toString();
var currentdayandmonth=monthString+"/"+dayString;

if (currentdayandmonth == birthday)
    {
    return true;
    }
else
    {
    return false;
    }
}



function isTodayAdasBirthday()
{

var todaysdate=new Date();
var month=todaysdate.getMonth();
month=month+1;//added 1 since months start at 0
var dayofmonth=todaysdate.getDate();
var currentdayandmonth=monthString+"/"+dayString;


isItAdasBirthday(currentdayandmonth)