I have following function in test.js and i am exporting to reuse in another function.
function main(data) { var variable = 123; function sub() { console.log(