ExamVeda
Login
Home
This question belongs to Javascript Classes And Modules
Classes and Modules
?

Consider the following statement
var Set = sets.Set;
var s = new Set(1,2,3);
What could be the efficiency quotient of the above two statements ?

Answer & Solution
Correct Answer: Option A
A programmer can import frequently used values into the global namespace. A programmer who was going to make frequent use of the Set class from the sets namespace might import the class like that.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.