Home / CSE MCQs / ExpressJS :: Discussion

Discussion :: ExpressJS

  1. What will be the output of the below code in the console?
    File: my_module.js
    exports.name = 'Zeus';
     
    Code:
    var my_module = require('./mymodule');
    console.log((function(settings){
        return settings.split('').reverse().join('')
    })(my_module.name));
  2. A.
    Error
    B.
    Zeus
    C.
    undefined
    D.
    sueZ

    View Answer

    Workspace

    Answer : Option A

    Explanation :



Be The First To Comment