This is a day 4 task,it has the code by using Anonymous,IIFE and arrow functions.