Because when you access inputString[0] you get the unicode value of the first character so what he does is to substract the value of the character 0, because let's say "0" has a value of 32, then, 1 has a value of 33, and so on. So, when you substract 33 - 32 you get 1
Love it
How did he make it 🤣
Bro went all the way
yo wtf is this 🤣
Because when you access
inputString[0]
you get the unicode value of the first character so what he does is to substract the value of the character 0, because let's say "0" has a value of 32, then, 1 has a value of 33, and so on. So, when you substract 33 - 32 you get 1