JScript.NET

JScript.NET enables us to create full-fledged .NET applications—as if we were using a language such as C# or VB.NET—by compiling our code into Intermediate Language (IL). One of the great things about this method is that it allows us to use strict data typing and access modifiers, such as private and public properties, which I know seems very alien when thinking of JavaScript. The strict data typing allows for better code readability and much easier debugging methods.

Here is an example of the syntax that you would use to create a JScript.NET object.

<script language="JScript" runat="server"> public class employee (_id, _firstName, _lastName) { private id : String = _id; private firstName : String = _firstName; private lastName : ...

Get Ajax for Web Application Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.