2 ms·
when the program parses the ibniz string, it seems to look for a character AFTER v. if v is the last character in the string, then when it does this , it gets u
by ZenPsycho 15y ago
when the program parses the ibniz string, it seems to look for a character AFTER v. if v is the last character in the string, then when it does this , it gets undefined, attempts to get the char code for it, and thus throws an error since undefined isn't a string with a charCodeAt method. This is easily fixed by guarding that section of code to make sure that it always returns a string and never returns undefined.