Write a note on nested functions.

What will be an ideal response?

Any function, including named functions, can be nested within another function as in the following structure:?functionoutsideFn() {commands   functioninsideFn() {   commands}commands}?whereoutsideFn()is the outer or containing function andinsideFn()is the inner or nested function. A nested function is limited in scope to the commands within the containing function in the same way that variables defined within the function are local in scope. The nested function is thus hidden from other code in the script, making the code contained and easier to manage.

Computer Science & Information Technology

You might also like to view...

________ are the nonprinting lines between columns and rows in a table

A) Headers B) Table gridlines C) Cells D) Slide gridlines

Computer Science & Information Technology

Copying a virtual disk creates an new identical VM.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology