+ 2

Can we still write our JavaScript code without ES6 or it is necessary?

About JavaScript

10th Jun 2020, 7:14 AM
Muskaan
Muskaan - avatar
5 ответов
+ 8
See my answer to a similar question. https://www.sololearn.com/Discuss/2331404/?ref=app Hopefully, that will clear up how to think about ES6.
10th Jun 2020, 7:52 AM
David Carroll
David Carroll - avatar
+ 4
Yes, you can write JavaScript without ES6 codes, but using ES6 allows us write JavaScript in much simple and cleaner codes, why would you prefer to write much complicated codes without ES6? Trust me, spend some more time to learn ES6, you would write faster and better codes later. Don't worry too much about browser compatibility of ES6, it's year 2020 now, most browsers can run ES6(ES2015).
10th Jun 2020, 7:32 AM
Calviղ
Calviղ - avatar
+ 3
As many have stated you do not need to transpile ES6 JavaScript code if targeting a modern browser such as Chrome or FireFox. However, not doing this means that you will need to navigate the Digital Minefield that vanilla JavaScript is.
10th Jun 2020, 7:17 AM
👑FabVab👑
👑FabVab👑 - avatar
+ 1
Thanks everyone 😇😇
10th Jun 2020, 8:05 AM
Muskaan
Muskaan - avatar