Learn JavaScript Part 23

Functions give you a way to recycle code! You can write a set of instructions and then tell it to execute somewhere in your program.