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
Rocky Balboa
19,039 PointsTypescript or Babel
Which one will be the most Typescript or Babel
1 Answer
Spencer Snyder
4,030 PointsLol wut...
I'll give it a shot anyway.
typescript, I believe, is a language that compiles to JavaScript. Very similar to JavaScript but different.
Babel is a tool. It takes code written in a language other than JavaScript and makes it JavaScript. Like jsx or taking different JavaScript syntax like es6 and making it es5 so all browsers can use it.
One is a language that needs a compiler, the other is a tool that transpiles(similar to compiling) specific things to JavaScript.
You can't learn Babel, you just learn to use it. You can learn typescript because it is a language.
Spencer