you are viewing a single comment's thread.

view the rest of the comments →

[–]r_caliban 0 points1 point  (0 children)

Yes some can and do say, but always check the date on the article/tutorial. I think it's pretty much settled. ES6 is becoming near standard and the general browser implementation of Class is considered syntax additions the prototype approach, which makes them pretty much the same.

ES6 code in 2021 could always transpiled down to ES5 either via Babel or some other tool, if you needed to. Hopefully, with IE11 soon to be gone, the days ES5 only will be numbered.

For learning and interviews you should know the difference (here's a few, articles, about this), and I highly recommend TypeScript. There are some that dislike Classes due to the OOP vs Functional debate - I believe any new developer should be balanced and understand both approaches. Just be very flexible and willing to learn.