Skip to content

Instantly share code, notes, and snippets.

@McLarenCollege
Last active December 21, 2021 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McLarenCollege/c17b7e6244a89f42a2986763bfab5a54 to your computer and use it in GitHub Desktop.
Save McLarenCollege/c17b7e6244a89f42a2986763bfab5a54 to your computer and use it in GitHub Desktop.
Party Time

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

Note: You can assume that the given year will always be greater than Anu's Birth Year.

CODE TEMPLATE


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

let givenDay = 26; 
let givenMonth = "February"; 
let givenYear = 2021; 

let isPartyTime = ; // Write your expression here
console.log(isPartyTime); 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment