Forum Discussion

binnu's avatar
binnu
Occasional Contributor
5 years ago

How to export a function from one unit to another unit in JavaScript.

Hi Everyone,   I'm trying to export a function from one unit to another unit, i used "module.exports.Test1 = Test1;" command in the unit1 to export Test1 function and used "var objin = require("Dat...