If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

What is a function?

Functions assign a single output for each of their inputs. In this video, we see examples of various kinds of functions. Created by Sal Khan.

Video transcript