1.

The scope of a function is also called as ________(a) Predefined function(b) Module function(c) Public function(d) Private functionThe question was posed to me by my college professor while I was bunking the class.Asked question is from Modules in JavaScript in chapter Classes and Modules in JavaScript of JavaScript

Answer»

Correct answer is (b) MODULE function

To ELABORATE: The SCOPE of a function can be used as a PRIVATE NAMESPACE for a module. Therefore, the scope of a function is called a module function.



Discussion

No Comment Found

Related InterviewSolutions