How do you declare a function inside a function?

We can declare a function inside a function, but it’s not a nested function . Because nested functions definitions can not access local variables of the surrounding blocks, they can access only global variables of the containing module.

Sizin İçin Seçtik  Can we use logical operators in switch statement in JS?

Leave a Reply

Your email address will not be published. Required fields are marked *