Ad spot

About This Episode

Think of a function as a container for reusable pieces of logic. In this lesson, you'll create your very first function.

Homework: Write a function that determines if a provided age (sent through as an argument) is old enough to enter a 21-and-up night club. Have this function return a boolean, which can be used in any conditional.

Ad spot
Back to Series Button