A closure is a function whose return value depends on the value of the variables declared outside the function.