From the course: Learning CoffeeScript

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Basic CoffeeScript syntax

Basic CoffeeScript syntax - CoffeeScript Tutorial

From the course: Learning CoffeeScript

Start my 1-month free trial

Basic CoffeeScript syntax

In this video, I'm going to talk about some of CoffeeScript's syntax. But before I do that, I need to show you how I have my examples set up so you can follow along with me. So in my desktop I have a CoffeeScript folder that I created in the last chapter. And if you've been following along, you know that you need to make sure that you pull up a terminal, and issued the gulp command on this folder. So if you haven't already, make sure your terminal is up, and that you change directory to this folder. Once you do that you can execute the gulp command, and the gulp command will take care of processing any CoffeeScript into its equivalent JavaScript files. So once you've launched the gulp command, you can minimize your terminal. Now I'm going to switch over to this folder and, the two files that I'm going to need are in the Components folder. I need to open up the CoffeeScript file, which is script.coffee. And then in the scripts folder, I need to open up the script.js document. This is…

Contents