Created
July 13, 2017 21:59
-
-
Save ethanstenis/eaa18968db2aadd35e5db68f31349ca7 to your computer and use it in GitHub Desktop.
This is the solution to Codewars' KATA: Parse int from char problem.
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
function getAge(inputString){ | |
return parseInt(inputString.charAt(0)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment