Closures are self-contained blocks of functionality that can be passed around and used in your code. They can capture and store references to variables and constants from their surrounding context, making them extremely powerful for functional programming. 1.Closure as a Function Argument 2.Trailing Closure If a closure is the last …