JScript syntax authentication?

I am new to JScript, coming from the C ++ world.

I am very surprised that expressions are evaluated at runtime. I mean, if I add a function and did not provide its definition, the program will β€œwork” (in the debugger) when I run it.

It’s also funny how I can simply jabber gibberish anywhere and only at run time, which the debugger will complain about.

But there will be no live page!

Is there any JScript add-in that checks its syntax during input? I am currently using Aptana Studio.

Or a debug button equivalent to compiling in the web world? But then, if you had a million lines of code and some small function was not defined or spelled incorrectly? It scary thought of me. = S

+3
source share
2 answers

JSLint is regarded by many as the best parser. I don’t know that there is an add-on for your specific situation, but you can easily add it to your build process.

Update: Apparently, there are several installed methods for integrating with Aptana.

+7
source

Welcome to the world of scripts!

+1
source

Source: https://habr.com/ru/post/1709393/


All Articles