Join Ray Villalobos for an in-depth discussion in this video Using the switch statement, part of Up and Running with CoffeeScript.
So, I'll use string interpolation here and a pass along item.…Then I'm going to create here an author and set it to a value.…So, I'll just create an author called Bob here, set it to an author.…And then I'm going to create a switch…with the coffee script version of the statement.…So, all you do is you say, switch and then you put in what you want to test.…And you pretty much use English like commands.…You say, when and then a value here, when the…
- What is CoffeeScript?
- Setting up a project with Gulp.js
- Adding CoffeeScript to your workflow
- Dealing with array ranges
- Working with conditional statements
- Using loops
- Working with splats