Consider the code below.

calculator.js 

exports.add=function (num1,num2){ 
       return num1+num2; 
} 
exports.sub=function (num1,num2){ 
        return num1-num2; 
} 

TestCalculator.js 

var cal=require("./calculator"); 

Which of the below statements is  true with respect to the code in TestCalculator.js file?

Only add method can be invoked
Only sub method can be invoked
Both add and sub methods can be invoked
Not possible to invoke add and sub methods
Correct Option - c

To get all Infosys Certified Node Developer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in