Chapter 2. Simplified syntax

This chapter covers

  • Basic syntax and structure
  • Expressions and operators
  • An introduction to strings, arrays, objects, and functions
  • How to run CoffeeScript programs

Before going to a country where you don’t speak the language, you might spend some time listening to the language to get a feel for it or maybe learn some essential canned phrases to help you get around. Think of CoffeeScript in the same way. As you’re immersed in the syntax of CoffeeScript, you’ll start to build your understanding.

In this chapter, you’ll learn about expressions, operators, and statements, as well as how they work in CoffeeScript and how they’re related to the JavaScript equivalents. You’ll explore fundamental building blocks ...

Get CoffeeScript in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.