Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Party Time

Intitialize the currentDay, currentMonth and currentYear variables with the values for the current day.

Given the details of Anu's birthday write a boolean expression to check if today is Party Time (Anu's birthday) by comparing it with the details for the current day.

let anuBirthDay = 26;
let anuBirthMonth = "August";
let anuBirthYear = 1986;

let currentDay = ; //Initialize with current Day
let currentMonth = ; //Initialize with current Month
let currentYear = ; //Initialize with current Year

let isPartyTime = ; // Write your expression here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment