Created
October 1, 2022 09:02
-
-
Save NhanKhangg98/9c4ebd3a5817a9a1e341cc9ff6bde8d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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