Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript require

var require = function(src){
	var fileAsStr = readFild(src)
	var module.exports = {}
	**const a = 10
	exports.a = a;**
	return module.exports
}
Source by velog.io #
 
PREVIOUS NEXT
Tagged: #javascript #require
ADD COMMENT
Topic
Name
8+1 =