HTML/CSS - Converting Char to int, [a g h s a] to [1 2 3 4 1]. Start with one and increment for each unique no. Online Editor and JavaScript Compiler | Sololearn

Converting Char to int, [a g h s a] to [1 2 3 4 1]. Start with one and increment for each unique no.

+3