What is the command used to import external libraries?

The “require” command is used for importing external libraries. For example – “var http=require (“HTTP”).”  This will load the HTTP library and the single exported object through the HTTP variable.

Now that we have covered some of the important beginner-level Node.js interview questions let us look at some of the intermediate-level Node.js interview questions.

varhttp

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *