I can't find a Javascript reference section on MSDN. However, I can find a JScript section. Does this mean that Internet Explorer interprets Javascript as JScript? Are Microsoft being annoying and renaming things for no reason (ie the two are interchangable)?
Do Microsoft supply reference material for Javascript (NOT JScript) on their MSDN website? Where?!?anti virus
The reference material for JavaScript is called ECMAScript 262. This is a specification is not a Microsoft one. Microsoft's implementation of ECMAScript is called JScript - and that's the reference material you see on MSDN.
The two terms (or three if you include ECMAScript) are largely interchangable when it comes to the core language - the way you declare variables, objects, functions, the way you extend objects etc. What differs is the browser sandbox the code runs in - Internet Explorer makes various methods and properties available to javaScript code - these may not always be available in other browsers, particularly the properietory extensions like document.all.
But the language itself, the pure JavaScript, that part is largely interchangable.
Do Microsoft supply reference material for Javascript (NOT JScript) on their MSDN website? Where?!?auto protect
JScript is Microsoft's implementation of JavaScript.
The naming difference is because there are some differences between the languages, and due to (IIRC) licensing issues with Sun Microsystems.
No comments:
Post a Comment