JScript .NET is a .NET programming language developed by Microsoft as a natural successor to Microsoft's Active Scripting language JScript.
Both JScript and JScript .NET are languages whose syntax is based on that of C language. JScript has no relation to Sun Microsystems' Java language. The primary differences between JScript and JScript .NET can be summarized as follows:
The original JScript is a scripting language, and as such programs (or more suggestively, scripts) can be executed without the need to compile the code first. This is not the case with the JScript .NET command-line compiler, since this next-generation version relies on the .NET Common Language Runtime (CLR) for execution, which requires that the code be compiled to Common Intermediate Language (CIL), formerly called Microsoft Intermediate Language (MSIL), code before it can be run. Nevertheless, JScript .NET still provides full support for interpreting code at runtime (eg, via the Function constructor or the eval function) and indeed the interpreter can be exposed by custom applications hosting the JScript .NET engine via the VSA interfaces.
Secondly, the original JScript had a strong foundation in Microsoft's ActiveX/COM technologies, and relied primarily on ActiveX components to provide much of its functionality (including database access via ADO, file handling etc.), whereas JScript .NET uses the .NET Framework to provide equivalent functionality. For backwards-compatibility (or for where no .NET equivalent library exists), JScript .NET still provides full access to ActiveX objects via .NET / COM interop using both the ActiveXObject constructor and the standard methods of the .NET Type class.
Although the .NET Framework and .NET languages such as C# and Visual Basic .NET have seen widespread adoption, JScript .NET has never received much attention, by the media or by developers. Future versions of .NET will feature JScript .NET prominently. However, ASP.NET supports JScript .NET.
|