Skip to content

Instantly share code, notes, and snippets.

@NhanKhangg98
Created October 1, 2022 09:02
Show Gist options
  • Save NhanKhangg98/9c4ebd3a5817a9a1e341cc9ff6bde8d9 to your computer and use it in GitHub Desktop.
Save NhanKhangg98/9c4ebd3a5817a9a1e341cc9ff6bde8d9 to your computer and use it in GitHub Desktop.
function twoFer(name: string = "you"): string {
return `one for ${name}, one for me`
}
function isLeapYear(year: number): boolean {
return (year % 100 !== 0 && year % 4 ===0) || year % 400 === 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment