https://tutorial.eyehunts.com/js/javascript-char-to-int-example-code/
JavaScript char to int | Example code