JSFiddle - React, Tailwind, and code Playground

by Joshua Koudys

JavaScript

function Walks(birthday) {
    this.birthday = birthday;
}
Student.prototype.isBirthday = function (checkDay) {
    return checkDay.getDate() === this.birthday.getDate() && checkDay.getMonth() === this.birthday.getMonth();
};
Student.prototype.isTodayBirthday = function () {
    return this.isBirthday(new Date());
};

var josh = new Student(new Date("02,02,1900"));
for(var i = 0; i < 10; i++);
for(var day = new Date(); !josh.isBirthday(day); );