What does this error mean?

There is an error in this project, how do I fix it?

Hi! I solved it! It is the number stuff! just put it in a join block and it works!
image
You are welcome!

Thanks! I had to convert it back into a number, though.

I wonder why the error showed up.

join will append all the objects together. In the process, it turns them all into strings, like 1 would turn into "1" while "GameGod" would stay the same. Then it returns a string.

parse to number takes a string and turns it into a number, example "35465" would turn into 35465.

Notice that a string and a number are different. TypeScript takes this very seriously.

1 Like