+ 2
Can we still write our JavaScript code without ES6 or it is necessary?
About JavaScript
4 odpowiedzi
+ 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.
+ 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).
+ 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.
+ 1
Thanks everyone 😇😇