<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=JScript_.NET</id>
	<title>JScript .NET - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=JScript_.NET"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=JScript_.NET&amp;action=history"/>
	<updated>2026-04-15T09:06:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=JScript_.NET&amp;diff=504427&amp;oldid=prev</id>
		<title>imported&gt;Ivanktw: Category:JavaScript dialect engines</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=JScript_.NET&amp;diff=504427&amp;oldid=prev"/>
		<updated>2025-10-27T17:29:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=Category:JavaScript_dialect_engines&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:JavaScript dialect engines (page does not exist)&quot;&gt;Category:JavaScript dialect engines&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Programming language developed by Microsoft}}&lt;br /&gt;
{{Multiple issues|&lt;br /&gt;
{{No footnotes|date=November 2013}}&lt;br /&gt;
{{Update|date=June 2015}}&lt;br /&gt;
}}&lt;br /&gt;
{{Infobox programming language&lt;br /&gt;
| name = JScript .NET&lt;br /&gt;
| paradigms = [[Comparison of multi-paradigm programming languages|Multi-paradigm]]: [[Object-oriented programming|object-oriented]] ([[Prototype-based programming|prototype-based]]), [[Functional programming|functional]], [[Imperative programming|imperative]], [[Scripting language|scripting]]&lt;br /&gt;
| family = [[ECMAScript]]&lt;br /&gt;
| designer = &lt;br /&gt;
| developer = [[Microsoft|Microsoft Corporation]]&lt;br /&gt;
| released = &amp;lt;!-- {{Start date and age|20yy}} --&amp;gt;&lt;br /&gt;
| latest release version = &lt;br /&gt;
| latest release date = &lt;br /&gt;
| typing = [[Duck typing|duck]], [[Strong and weak typing|weak]], [[Dynamic typing|dynamic]]&lt;br /&gt;
| scope = [[Scope (computer science)|lexical]]&lt;br /&gt;
| platform = [[.NET]] framework&lt;br /&gt;
| operating system = [[Microsoft Windows]]&lt;br /&gt;
| license = [[Proprietary software|proprietary]]&lt;br /&gt;
| file ext = .js&lt;br /&gt;
| file format = JScript .NET&lt;br /&gt;
| website = &amp;lt;!-- {{URL|www.example.com}} --&amp;gt;&lt;br /&gt;
| implementations = &lt;br /&gt;
| dialects = &lt;br /&gt;
| influenced by = [[JavaScript]], [[JScript]], [[ECMAScript]]&lt;br /&gt;
| influenced = &lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;JScript .NET&amp;#039;&amp;#039;&amp;#039; is a [[.NET]] framework [[programming language]] developed by [[Microsoft]] as [[proprietary software]].&lt;br /&gt;
&lt;br /&gt;
The main differences between [[JScript]] and JScript .NET can be summarized as:&lt;br /&gt;
&lt;br /&gt;
Firstly, JScript is a [[scripting language]], and as such, [[computer program|programs]] (or more suggestively, scripts) can be executed with no need to [[Compiler|compile]] the code before. This is not the case with the JScript .NET [[command-line interface]] 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 named Microsoft Intermediate Language (MSIL), code before it can be run. Nevertheless, JScript .NET still fully supports [[Interpreter (computing)|interpreting]] [[source code]] at [[Execution (computing)#Runtime|runtime]] (e.g., via the &amp;lt;code&amp;gt;Function&amp;lt;/code&amp;gt; constructor or the &amp;lt;code&amp;gt;[[eval#JavaScript|eval]]&amp;lt;/code&amp;gt; function) and indeed the interpreter can be exposed by custom applications hosting the JScript .NET engine via the VSA{{Technical inline|reason=more on VSA interfaces|date=February 2012}} interfaces.&lt;br /&gt;
&lt;br /&gt;
Secondly, JScript has a strong foundation in Microsoft&amp;#039;s [[ActiveX]] and [[Component Object Model]] (COM) technologies, and relies mainly on ActiveX components to provide much of its function (including database access via [[ActiveX Data Objects]] (ADO), file handling, etc.), whereas JScript .NET uses the [[.NET]] framework to provide equivalent function. For backward-compatibility (or for where no .NET equivalent library exists), JScript .NET still provides full access to ActiveX objects via .NET and [[COM Interop]] using both the ActiveXObject constructor and the standard methods of the .NET &amp;lt;code&amp;gt;Type&amp;lt;/code&amp;gt; class.&lt;br /&gt;
&lt;br /&gt;
Although the .NET framework and languages such as [[C Sharp (programming language)|C#]] and [[Visual Basic (.NET)]] have been adopted widely, JScript .NET has received little attention, from the media and developers. It is not supported in Microsoft&amp;#039;s premier development tool, [[Visual Studio .NET]]. However, [[ASP.NET]] supports JScript .NET.&lt;br /&gt;
&lt;br /&gt;
== Language differences ==&lt;br /&gt;
The following are prime examples of language differences between JScript .NET and other .NET languages, including comparisons.&lt;br /&gt;
&lt;br /&gt;
=== Differences with C# ===&lt;br /&gt;
* JScript .NET does not require an [[entry point]] ({{code|main()}} [[Function (computer programming)|function]]) that an [[operating system]] must call directly when executing a JScript .NET application, as such, JScript .NET program [[control flow]] can be based on global code.&lt;br /&gt;
* JScript .NET, because of its very loose [[data type]] checking system, can be easier to learn, since the common convention of [[Declaration (computer programming)|declaring]] types explicitly is unneeded.&lt;br /&gt;
* 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 (e.g., functions for finding the [[Trigonometric function|tangent]] of an angle for a [[right triangle]]).&lt;br /&gt;
* JScript .NET is closely linked to [[C syntax]], and is thus easy to learn for [[C Sharp (programming language)|C#]], [[Java (programming language)|Java]], or [[C++]] developers.&lt;br /&gt;
* While JScript .NET can be used to create Windows Forms applications, it can 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.&lt;br /&gt;
&lt;br /&gt;
=== Differences with C++ ===&lt;br /&gt;
* JScript .NET does not need a {{Mono|[[entry point|main()]]}} [[Function (computer programming)|function]].&lt;br /&gt;
* JScript .NET does not need explicit [[type declaration]] on variables. (In [[C++]], the use of templates and generics can be compared to this, loosely emulated with template specialization, etc.)&lt;br /&gt;
* JScript .NET does not need explicit [[Type conversion|type casts]] on variable use in the program. Code used to retrieve a string of characters, but only used for integer numbers can be cast implicitly; the vice versa can be done without error at [[compile time]], but there is a chance of loss of precision or data.&lt;br /&gt;
e.g.:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;typescript&amp;quot;&amp;gt;&lt;br /&gt;
import System;&lt;br /&gt;
&lt;br /&gt;
Console.WriteLine(&amp;quot;Hello, what&amp;#039;s your name?&amp;quot;);&lt;br /&gt;
Console.WriteLine(&amp;quot;Type your name: &amp;quot;);&lt;br /&gt;
&lt;br /&gt;
var name: String = Console.ReadLine();&lt;br /&gt;
&lt;br /&gt;
Console.WriteLine($&amp;quot;Hello, {name}&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Differences with Java ===&lt;br /&gt;
* JScript .NET syntax and lexical conventions are similar to [[Java (programming language)|Java]] in that both are derived from [[C (programming language)|C]]. JScript was originally Microsoft&amp;#039;s implementation of [[ECMAScript]], which is more commonly known as [[JavaScript]], though it is unrelated to Java. Thus, users of Java and other C-derived languages will find JScript easier to learn.&lt;br /&gt;
* JScript .NET allows developers to use [[Variable (computer science)#Typing|untyped variables]], and can sometimes infer their type from their usage to optimize the compiled code. On the other hand, Java requires all variables to be typed, though Java also supports type inference.&lt;br /&gt;
* JScript .NET can add properties and methods to objects in [[Run time (program lifecycle phase)|run-time]], while Java objects always conform to their declared interface.&lt;br /&gt;
* JScript .NET supports [[global variables]], which Java does not.&lt;br /&gt;
&lt;br /&gt;
=== Differences with older versions of JScript ===&lt;br /&gt;
* JScript .NET allows declaring variables and functions with type information (e.g., &amp;lt;code&amp;gt;var x: String;&amp;lt;/code&amp;gt;), while type information for JScript&amp;#039;s variables and functions cannot be declared (e.g., &amp;lt;code&amp;gt;var x;&amp;lt;/code&amp;gt;).&lt;br /&gt;
* JScript .NET scripts are not interpreted, but executed independently. When executed, a JScript .NET application will invoke the [[Common Language Runtime|CLR]]. The CLR will execute the [[Common Intermediate Language|CIL]] instructions without using an interpreter.&lt;br /&gt;
* JScript .NET can be run without the presence of a browser or another [[Scripting language|scripting engine]] as the compiler can generate standalone [[executable]]s and assemblies. However these still require [[.NET]] framework to be installed to run.&lt;br /&gt;
* JScript .NET provides access to the .NET framework [[Base Class Library]] (BCL), providing much more function.&lt;br /&gt;
* JScript .NET is available as a scripting language for only [[ASP.NET]], the technology used to generate web pages. Thus, JScript .NET has a role similar to [[PHP]] and other [[Client–server model|server-side]] scripting languages. Internet Explorer, however, still uses only the older JScript engine, so JScript.NET cannot be used to script web pages (or [[HTML Application]]s (HTAs), or HTCs). In this regard, JScript is much more versatile than JScript .NET.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[JS++]]&lt;br /&gt;
* [[TypeScript]]&lt;br /&gt;
* [[JavaScript OSA]] – system-level scripting language for [[Apple Inc.|Apple]] [[Mac (computer)|Macintosh]]&lt;br /&gt;
* [[JScript]]&lt;br /&gt;
* [[ActionScript]]&lt;br /&gt;
* [[C Sharp (programming language)|C#]]&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* [http://msdn.microsoft.com/en-us/library/3bf5fs13.aspx Getting Started With JScript .NET]&lt;br /&gt;
* [http://msdn.microsoft.com/en-us/library/ms974588.aspx Introducing JScript .NET]&lt;br /&gt;
* [https://web.archive.org/web/20091027083329/http://geocities.com/Jeff_Louie/jscript_net_windows_form.htm JScript.NET tutorial and form tutorial]&lt;br /&gt;
&lt;br /&gt;
{{Common Language Infrastructure}}&lt;br /&gt;
{{ECMAScript}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Jscript .Net}}&lt;br /&gt;
[[Category:.NET programming languages]]&lt;br /&gt;
[[Category:JavaScript dialect engines]]&lt;br /&gt;
[[Category:JavaScript programming language family]]&lt;br /&gt;
[[Category:Object-based programming languages]]&lt;br /&gt;
&amp;lt;!-- Hidden categories below --&amp;gt;&lt;br /&gt;
[[Category:Articles with example JavaScript code]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Ivanktw</name></author>
	</entry>
</feed>