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 - CoffeeScript Tutorial
From the course: Learning CoffeeScript
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Basic CoffeeScript syntax7m 15s
-
(Locked)
Using realistic assets5m 24s
-
(Locked)
Understanding variables10m 11s
-
(Locked)
Dealing with array ranges4m
-
(Locked)
Working with conditional statements5m 2s
-
(Locked)
Using loops and comprehensions4m 14s
-
(Locked)
Adding basic functions2m 57s
-
(Locked)
Working with splats3m 28s
-
(Locked)
Using the switch statement2m 51s
-
(Locked)
Using aliases for "this" and other tidbits3m 57s
-
(Locked)
-