Codele / Advanced programming

Functions as values and closures

A function can be stored in a variable, handed to other code and returned, like a number. A function made inside another one even remembers the variables that were around when it was made.

Loading the playable lesson…