Removed unnecessary try-catch
Application is now showing text in window and not in the console
throw new error if the input is whitespace only
Application now takes leap year in consideration
typo
Removed unnecessary console log
DRY
Throw error if input incorrect