JScript .NET

JScript .NET is a .NET 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 heavily based on that of 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 JScript .NET, since this next-generation version relies on the .NET CLR (Common Language Runtime) for execution, which requires that the code be compiled to MSIL (Microsoft Intermediate Language) code before it can be run.

Secondly, the original JScript had a strong foundation in Microsoft's ActiveX technologies, and relied primarily on ActiveX COM 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.

Although the .NET Framework and .NET languages such as C# and VB .NET have seen widespread adoption, JScript .NET has never received much attention, by the media or by developers. It is not supported in Microsoft's premier development tool, Visual Studio .NET, and it's unlikely that future versions of .NET will feature JScript .NET prominently.

But ASP.NET supports JScript .NET.


Language Differences

The following are prime examples of languages differences between other .NET Languages, including comparisons.

...to C#

  • JScript variables needn't be declared as a certain type.
   var i = 0; 
   var s = "hello";

The preceding will compile without error or warning.

  • JScript .NET does not have a main() function that the operating system must call directly when executing a JScript .NET application, as such, JScript .NET program flow is based entirely on global code.
  • JScript .NET does support object oriented programming, but can support procedural oriented programming.
  • JScript .NET, because of its very loose type checking system can be very easy to learn, since the convention of explicit type declaration is not required at all.
  • JScript .NET does not require explicit references to the .NET Framework Base Class Library, as certain functions, found in earlier versions of JScript are present in JScript .NET; such as functions for finding the tangent ratio of a triangle etc.
  • JScript .NET is closely linked to Java's syntax, and is thus very easy to learn for C# or C++ developers.
  • While JScript .NET can be used to create Windows Forms applications, JScript .NET will have some trouble, as delegates can only be consumed in JScript .NET and not created. Thus, custom events are hard to emulate in JScript .NET.

...to C++

  • JScript .NET does not require a main() function.
  • JScript .NET does not require explicit type declaration on variables. (In C++, the use of templates and generics can be compared to this, loosely emulated with template specialization etc)
  • JScript .NET also does not require explicit casts on variable use in the program. Code used to retrieve a string of characters, but only used for integer numbers can be casted implicitly; the vice-versa can be done without error at compile time, but there is a chance of loss of precision or data.


import System;

var _name;

Console.WriteLine("Hello, what's your name?");
Console.WriteLine("Type your name: ");

var _name = Console.ReadLine();
//provide a number and it will output it below, without error

Console.WriteLine("Hello, " + _name);
  • Like C++, JScript .NET support classes and true object oriented programming conventions, except multiple inheritance is not supported.

...to Java

  • JScript .NET syntax and lexical conventions are closely linked to Java, (which is why there is a 'J' in the name JScript; JScript was originally Microsoft's implementation of ECMAScript, which is closely linke to JavaScript which is related to Java) and as such, users of Java and JavaScript will find it [JScript] easy to learn.
  • JScript .NET supports global variables and multidimensional arrays, something Java does not.
  • JScript .NET applications, unlike Java, (while still is a scripting langauge) are not interpreted. It is compiled and executed, running without the overhead of an interpreter (but still with a garbage collector).

...to Visual Basic .NET

To do: finish this section

...to older versions of JScript

  • JScript .NET scripts are not interpreted, but executed independently. When executed, a JScript .NET application will invoke the CLR and garbage collector and the CLR will execute the MSIL instructions, but CLR will not interpret directly, the MSIL instructions.
  • JScript .NET can be run without the presence of a browser or another scripting engine.
  • JScript .NET provides access to the .NET Framework BCL (Base Class Library), providing much more functionality.
  • JScript .NET, like older versions of JScript, provide in built functions to keep common functions simple.
  • JScript .NET is only supported on the server side (in only one case: ASP.NET), thus JScript .NET cannot be run inside the browser or such as older JScript versions do, which makes it [older versions of JScript] much more versatile.

...to PHP

to finsih

...to Perl

to finish

to be finished


Getting Started With JScript .NET (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/jscript7/html/jscongettingstartedwithjscriptnet.asp)

Template:Compu-lang-stubde:JScript .NET


  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)


  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Personal tools