Chapter 6Clean Up Parameters and Return Statements

I’m famous for assuming I can always find a shortcut. If I’m driving down the highway and hit construction, I’ll take the first off ramp, determined to find a quick way around the delay. Exiting the highway requires that I ignore the protests of my wife, who thinks it would just be easier to slow down and follow the orange cones.

Well, my wife is usually right. I pull off and take a side road that suddenly veers even further off course. I don’t mind. I grew up in the middle of nowhere, so I have an intuition for county roads. At least I think I do, until the paved road turns into a dirt road before coming to a dead end at a wheat field. Giving in, I take out my phone to turn on the ...

Get Simplifying JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.