Created
February 6, 2026 16:46
-
-
Save mejiaj/6000f8bbba28b082366a82bcd86eff16 to your computer and use it in GitHub Desktop.
benefits
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 isEligibleForBenefit(age, income, residencyYears, hasDisability) { | |
| if (age < 18) return false; | |
| if (income > 60000) return false; | |
| if (residencyYears < 5) return false; | |
| if (hasDisability) { | |
| return true; | |
| } | |
| return age >= 65; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment