Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Kishan S
Kishan S
15,410 Points

What is the main difference between NativeScript, JavaScript, CoffeeScript and TypeScript?

what are the uses?

2 Answers

Andrew Chalkley
Andrew Chalkley
Treehouse Guest Teacher

CoffeeScript looks different to JavaScript and if your familiar with Ruby or Python this may look nice to you. It adds "syntactic sugar" to JavaScript. It compiles to plain JavaScript.

TypeScript can be written just as plain JavaScript but it has other additions, like specifying types like you would in Java or C#, but it's totally optional. It helps if you're using an IDE like Visual Studio or Web Storm. Lots of the "syntactic sugar" comes from ECMAScript 6 or ES6 the next version of JavaScript. It compiles to plain JavaScript.

NativeScript looks like a cross-platform app framework. But I haven't touched it.

You write shorthand javascript using coffeescript and typescript then it compiles them into native js. I always compare them to CSS preprocessors.