Home / CSE MCQs / Javascript MCQs :: Discussion

Discussion :: Javascript MCQs

  1. What is the alternative command used in Node for load()?
  2. A.
    store()
    B.
    module()
    C.
    log()
    D.
    require()

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    Use require() instead of load(). It loads and executes (only once) the named module, returning an object that contains its exported symbols.


Be The First To Comment