The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

JavaScript vs JScript!

I would say well enough that I know Javascript but I have been looking in ASP and ASP.net and I think I would like to use JScript since I know Javascript or are they absolutly different languages. Im pretty sure my choices are JScript, VBscript, C#, C++! But I would like to not have to learn a whole other language!

Sorry I posted in wrong forums belongs in ASP could someone delete or move?

Well, JavaScript can hardly be called a serious language. Though its syntax constructions are the same as in C like languages.

I think, the fact that you know JavaScript doesn't mean that you should learn JScript.NET and that it will be pretty easier. JScript.NET isn't similiar to JavaScripot, except syntax. JScript.NET is strongly-typed completely object oriented language as well as any other .NET language. So if you aren't familiar with concepts of OOP, you will hate to learn it.

And I highly recommend you to learn C#, it' the most powerful .NET language.

Yes I looked at C# it seems to be some what the same as Javascript syntax wise! One thing I noticed is you have to define data type such as string,integer,boolean why do you not have to do this in Javascript! I tried using C# ans did not get very far!

Well, the primary difference (AFAIK) is in how variable data types are handled. In javascript - although there are 7 or so different datatypes (Boolean, Number, String, Object, Function, Array, and Undefined. Some references will tell you that null is a type, but it's actually of type object) each one of them is implemented as an object, behind-the scenes. That's why even primitives, liks Strings, have methods (properties that are functions), such as indexOf and substring.

Strongly typed langauges require much more control and input from the programmer as to what the type of a variable is - when being declared, passed, received, or otherwise manipulated. Javascript doesn't require that you specify a string - you just use a string literal and javascript knows it's a string.

var myString = "some text";

That doesn't mean that javascript doesn't have a constructor for strings

var myString = new String( "some text" );

Basically, the type of the variable (in javascript) is implicit. For strongly -typed langauges, the variable type must be explicit.

I'm sure someone with more experience in a strongly-typed language can give you some better detail.