Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript require

// The require() method is used to load and cache JavaScript modules.
// So, if you want to load a local, relative JavaScript module into a Node.js application,
// you can simply use the require() method.

// Example:
var yourModule = require( "your_module_name" ); //.js file extension is optional
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #require
ADD COMMENT
Topic
Name
8+3 =