From the course: Learn JavaScript: Write Modern Code with JavaScript ESNext

Unlock this course with a free trial

Join today to access over 25,000 courses taught by industry experts.

Use CoffeeScript for cleaner syntax

Use CoffeeScript for cleaner syntax

- Alright, so now that we've taken a look at the basics of working with TypeScript, I'd like to show you a very simple introduction to using CoffeeScript. A lot of people find that they like working with CoffeeScript just because it reduces the amount of code and symbols, especially that you have to write in JavaScript. So what I'm going to do is the same kind of thing as what we did with our TypeScript demo. We'll start off by creating a new folder called coffeescript-demo. And then in our terminal, we're just going to change directories over to our coffeescript-demo folder. Alright, so now that we're in coffeescript-demo, the next thing that we're going to do is pretty much again, what we had to do with TypeScript. We need to actually install CoffeeScript. And you can either do that locally or you can do that globally. Oh, before we do that though, let's just run npm init -y. That will create the package JSON for us. And now we can say npm install -g coffeescript. Make sure you…

Contents