Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Dhruv Patel
Dhruv Patel
8,287 Points

ECMAScript in my own projects

So I've just revisited JS after about a few years and have ran across something known as ECMAScript. I've heard it is a more standardized version of JS and has many other implementations. It also allows for some handy syntax that I would love to use in my projects. But I'm confused on how to. Is there a way for me to include ECMAScript in my projects rather than just using plain old JS.

1 Answer

Steven Parker
Steven Parker
229,982 Points

ECMAScript (or ES) is a trademarked scripting-language specification standardized by Ecma International in ECMA-262 and ISO/IEC 16262. Well-known language implementations conforming (or approaching conformance) to this standard include JavaScript, JScript and ActionScript.

Whether ECMAScript is the language and JavaScript is a dialect is arguable, but not important. JavasScript is an implementation of ECMAScript, and has continued to evolve as has ES. So it's not "plain old JS" anymore.

But it's worth noting that any new feature of the latest ES spec is very likely to have incomplete browser support. The same can be said of some of the latest evolution of JS, which provides additional features not described in the ECMA specifications. Anyone designing for browser independence should be very cautious of rapidly adopting the very latest features of either.

Dhruv Patel
Dhruv Patel
8,287 Points

So whatever features available in ECMAScript now are more likely to make their way into JS in the future.