From the Kindle edition of my book, "A Smarter Way to Learn JavaScript":

A function is a block of JavaScript that robotically does the same thing again and again, whenever you invoke its name. It...