Join Ray Villalobos for an in-depth discussion in this video Working with splats, part of Up and Running with CoffeeScript.
- View Offline
Okay, now I'm going to create a function and…I'm going to feed some of these parameters into the function.…So, the function's going to be called fillOut.…And, just like any other function, it's going to have an equal sign.…And then I'm going to pass it along some parameters.…Here's where the splats come in.…I know that I want the first element of that array…that I I'm feeding in here to be in the name.…And then I want a second group of element, but I'm not sure how many…of those there's going to be, because there…
- 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