

So in my opinion JavaScript is very closely tied to browsers, whereas ECMAScript has really only a very basic set of functionality (if at all).

But one ECMAScript validator accepted Math.sqrt(9) as valid ECMAScript, whereas var test=window.document failed the ECMA validation.Įven though the following link it to a JavaScript documentation, this in my opinion is the build in feature set (objects and functions) of ECMAScript: Math.sqrt(9)) is part of ECAMScript, or whether ECMAScript really just defines the syntax of the language and has no build in functionality whatsoever. I couldn't really find out, whether the Math object (e.g. So JavaScript for server side scripting is much closer to ECMAScript again, which doesn't have this typical browser features. Some of the new features commonly used in real-world development are summarized here. I also recently spent some time looking at Understanding Cript6 as a Chinese ebook. Then all the geolcation or media apis make no sense. Category: The front end Tag: javascript The front end api ECMAScript 6 ES6 is now used extensively in many projects. JavaScript can also be used for server side scripting. However, these fancy new features are often called HTML5, even though they are implemented in JavaScript. Some would even say, this is not part fo JavaScript, but part of HTML5, which is not true, because HTML5 is just the markup language.

window.navigator, window.document, WebSocket, navigator.geolocation. There are many features of JavaScript, which make only sense in a browser environment, f.i. However, a ECMAScript validator will probably tell you it is not valid, because alert() is not part of the ECMAScript, but a typically feature of JavaScript for Browsers. It's more or less from experience, I cannot quote anything.Īny JavaScript validator and everybody who works with JavaScript will tell you that alert("hello World")
