+ 6

Do you need to write anything to change JS to ES6?

Is there any code I need to write(such as <!DOCTYPE HTML/>) to switch the language to ES6?

1st Jul 2019, 9:51 AM
Jacob Heath
Jacob Heath - avatar
4 Answers
+ 8
no. you don't need anything. Browsers support ES6 out of the box. Also, better use Babel / Búble / sucrase / swc to compile to ES5 for 100% browser support
2nd Jul 2019, 8:52 AM
v1rtl
+ 5
Js is suppose to be ES6 or what are you talking about?
2nd Jul 2019, 3:58 PM
Mirielle
Mirielle - avatar
+ 1
no, dont worry.
1st Jul 2019, 10:11 AM
Taste
Taste - avatar
- 1
No, For Unique ES6 Features, There Are Some Codes. You Just Need To Implement Them. But You Don't Have To Do Anything About JS to ES6. Let The Browser Deal With It. Btw Makes Sure Your Browser Is Not Backdated
12th Jul 2019, 2:45 AM
Wasim Mahmud Surjo
Wasim Mahmud Surjo - avatar