Var tom: Animal = new Horse("Tommy the Palomino")ĭoes it need to be transpiled into an ES5 compatible form to runs with Node.js or not?įinally, any online site that I can try playing with TypeScript/ES6 code like above? For TypeScript ES6-style JavaScript code that runs for Node.js, they are still need to be transpiled into an ES5 compatible form, despite that Node.js almost cover all ES6 featues, right? I.e.,Ĭonsole.log(this.name + " moved " + meters + "m.").Does it means even I write using the support ES6 features, I still need to use the Babel compiler to compile ES6 code to ES5 for Node.js to use it?. ![]() However, what exactly does the supported means in the chart? I.e.,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |