What is require in javascript?



What is require in javascript?..

Answer / Anusha Raj Verma

require is a function used in CommonJS modules system to import other modules in Node.js.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

Write a main method that prompts the user to enter the starting population, birth and death rates, and the number of years. The input birth and death rates cannot be negative, the starting population cannot be less than 2, and the number of years greater than 0. If the user enters an invalid value, this program will prompt user to re-enter the value until a valid value has been read. When all input values are valid, call on the methods above to compute estimated population and print result.

0 Answers   Wipro,


What is the difference between ‘function declaration’ and ‘function expression’?

1 Answers  


How can javascript be used to personalize or tailor a web site to fit individual users?

1 Answers  


Why extending array is bad idea?

1 Answers  


Explain higher-order functions in javascript?

1 Answers  


How to remove duplicate values from a javascript array?

1 Answers  


How to validate email in javascript?

1 Answers  


What is a way to append a value to an array?

5 Answers   Satyam,


What are the distinct types of error name values?

1 Answers  


How can a value be appended to an array?

1 Answers  


How to convert a string to lowercase?

1 Answers  


What is null in programming?

1 Answers  


Categories