Find the Characters Counterpart Char Code
Create a function that takes a single character as an argument and returns the char code of its lowercased / uppercased counterpart.
Examples
Given that:
- "A" char code is: 65
- "a" char code is: 97
counterpartCharCode("A") β 97
counterpartCharCode("a") β 65
Notes
- The argument will always be a single character.
- @Italo made one where you can go from A to 97 and from 97 to A for instance.