What is the difference between Javascript and ECMA script? [duplicate] – Even if we have a good project plan and a logical concept, we will spend the majority of our time correcting errors abaout javascript and . Furthermore, our application can run without obvious errors with JavaScript, we must use various ways to ensure that everything is operating properly. In general, there are two types of errors that you’ll encounter while doing something wrong in code: Syntax Errors and Logic Errors. To make bug fixing easier, every JavaScript error is captured with a full stack trace and the specific line of source code marked. To assist you in resolving the JavaScript error, look at the discuss below to fix problem about What is the difference between Javascript and ECMA script? [duplicate].
Problem :
What would happen if I start to define my script tags as ECMA? Will it execute to a different standard?
Does anyone actually use ECMA script instead of straight up Javascript…?
Solution :
ECMAScript is a standard. JavaScript is an implementation of that standard (edition 3 of that standard to be more exact).
Other implementations of ECMAScript are ActionScript and JScript.
Also note that there isn’t one JavaScript. Each JavaScript engine may implement its own version of the language as long as it meets the ECMAScript requirements. This means that browsers (JS engines) may have additional functionality, but they all must have the base ECMAScript functionality.
And now, to answer your question, according to RFC 4329, if the media type is set to application/ecmascript
, rather than application/javascript
, it must adhere to a stricter standard.
This document defines equivalent
processing requirements for the types
text/javascript, text/ecmascript, and
application/javascript. Use of and
support for the media type
application/ecmascript is considerably
less widespread than for other media
types defined in this document. Using
that to its advantage, this document
defines stricter processing rules for
this type to foster more interoperable
processing.
ECMAScript is a programming language standard, like lisp. Javascript is an implementation of such, along with non-ECMAScript features like the DOM. ActionScript(for Flash) is another one. Just like writing in “lisp” means writing in some dialect like Common Lisp or Scheme, actually writing straight-up ECMAScript might not only be pointless, but unusable in the dialects(although I think ActionScript 3 and recent JavaScript apply the whole ECMAScript standard).