Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js import export es5

// code.js
module.exports = { something: 'value' };

// main.js
const code = require('./code');
// or
const { something } = require('./code')
 
PREVIOUS NEXT
Tagged: #js #import #export
ADD COMMENT
Topic
Name
5+5 =