Store require statement in variable and call later

Viewed 21

require('xyz')() -- This is good.

Now storing this in var: const abc = require('xyz'); abc()

But this is not working.

0 Answers
Related