Class in JavaScript Vs Typescript

I read on this ECMAScript page that "class" is part of JavaScript. In this TypeScript page, I see that the class is also available in Typescript.

My question is, the correct approach to developing JavaScript FOR FUTURE applications is to use (a) object-oriented functions in JavaScript and functions that will be available in EMACScript 7.0, or (b) use libraries like TypeScript

+3


source to share


1 answer


My question is that the correct approach to developing JavaScript applications for the future is to use (a) object-oriented functions in JavaScript and functions that will be available in EMACScript 7.0, or (b) use libraries like TypeScript

Or everything is fine. Depends on the need for type safety.



If not, there are things like babeljs

. https://babeljs.io/

If so, use typescript

http://www.typescriptlang.org/

+7


source







All Articles