If you stick the string
as the first line of a file - it's in strict mode and it should tell you that you are assigning to a global without defining it.
Other choice is use a linter like eslint can help in these circumstances.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.