Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. 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 ?

  2. A.

     The programmer imports at once the frequently used values into the global namespace

    B.

     There is no efficiency quotient, the programmer tries to make it inefficient

    C.

     The programmer needs to import the Sets everytime he wants to use it

    D.

     All of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    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.


Be The First To Comment