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 trialKieran Barker
15,028 PointsBrowser support for ES2015
I don't quite understand this table.
Does IE11 support const
, let
, template literals, and/or arrow functions? I'd like to use all of these in my work projects, but if they aren't fully supported by IE11, I can't.
3 Answers
Chris Shaw
26,676 PointsHi Kieran Barker,
If you need your scripts to run in older browsers that lacks ES6 support (which a lot of older mobile devices do), you will need to use Babel which is a transpiler that converts ES6 into ES5 ready code. The Babel website has a ton of documentation about different methods you can use to compile your code and they all work the same way.
Hope that helps.
Steven Parker
231,269 PointsIf you look down the IE11 column for where it intersects with "let" and "const", you'll see that it meets most (but not all) testing criteria for them.
But when you look at the points where that column intersects with the rows for "template literals" and "arrow functions", it completely fails both with a 0 score.
Kieran Barker
15,028 PointsThanks, Steven :-)
Kevin Becerra
14,243 PointsIE11 supports almost all the functionality for const except for (for in) and (for of) loops in both a regular environment and in strict mode. IE11 is just a really bad browser in general with. If you are using ES2015 you shouldn't run into any problems but ES2016 has very little compatibility with IE11.
Hope this helps!
Kieran Barker
15,028 PointsThanks, Kevin!