In this example I am using an anonymous function since it does not have a name. It is stored in a variable and is therefore called when I use the variable name. Lets assume that we want to calculate 10% off on the price.