Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

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
STAFF
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.