Nested Function
A function with nested inner functions and a depth of more than 3 levels is a Nested function. Impact A heavily nested function makes it bulky and complex to read and maintain. Time and maintenance cost increases. Possibility of duplication of function increases. Characteristics A function has multiple inner functions…