Skip to content

Instantly share code, notes, and snippets.

@ethanstenis
Created July 13, 2017 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethanstenis/eaa18968db2aadd35e5db68f31349ca7 to your computer and use it in GitHub Desktop.
Save ethanstenis/eaa18968db2aadd35e5db68f31349ca7 to your computer and use it in GitHub Desktop.
This is the solution to Codewars' KATA: Parse int from char problem.
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