I am trying to convert text (E.g. Hello) to a number (E.g. 0805121215).
I have looked up many sources, but none of them have worked.
I have tried:
https://dev.to/sanchithasr/7-ways-to-convert-a-string-to-number-in-javascript-4l
and
thttps://www.geeksforgeeks.org/convert-a-string-to-an-integer-in-javascript/
I tried a few more sources but they all say that text outputs as NaN. I would like it to convert to a number, I don’t want Not a Number.
Here is an example of what I want to happen:
https://scratch.mit.edu/projects/948090655/