-
-
Save anonymous/2eabc4b47d514decc10a to your computer and use it in GitHub Desktop.
even.rb
This file contains 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
def isEven?(n) | |
return n % 2 == 0 | |
end | |
num = 5 | |
isEven?(num) # => How it currently works | |
# num.isEven? => How I want it to work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment