Daily Challenge #34

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.
6 Likes

These is the procedures italo made.

9 Likes

and for those, who don’t want to type everything again, you can download them from the App Inventor Gallery here ai2.appinventor.mit.edu/?galleryId=6407304567324672 Thank you @Italo
Taifun

3 Likes