In myeclipse. the statement prompts in JS are incorrect because myeclipse has strict syntax requirements, and these files can be run without any errors, it does not affect your actual application deployment. You can deploy and run it without having to worry about it.
However, it is always annoying to have such error prompts. You can cancel these prompts, right-click --> click exclude from validation of the myeclipse menu item, and do not verify the selected project settings. However, the existing error messages will not disappear. It is said that the remove all validation markers function in myeclipse can remove all verification syntax error messages, but I have tried it. Right-click an error message and choose delete from the shortcut menu.
Some people do not recommend using myeclipse for JS writing, but WTP, which is available in the eclipse javaee version or idea. Or spket, Aptana, and jseclipse.