1.

The provides() function and the exportsobject are used to _________(a) Register the module’s API and Store their API(b) Call the modules api(c) Store the module’s API(d) Register the modules apiThe question was asked by my school principal while I was bunking the class.My question is from Modules in JavaScript topic in division Classes and Modules in JavaScript of JavaScript

Answer»

Correct choice is (a) Register the MODULE’s API and Store their API

Explanation: FRAMEWORKS that DEFINE module loading systems MAY have other methods of exporting a module’s API. There may be a provides() function for MODULES to register their API, or an exports object into which modules must store their API.



Discussion

No Comment Found

Related InterviewSolutions