I am trying to require a file and afterwards pass it to a var. I am following this tutorial to create a authentication system. After writing the server.js file and trying to
For me, when I do Immediately invoked function, I need to put ; at the end of require().
;
require()
Error:
const fs = require('fs') (() => { console.log('wow') })()
Good:
const fs = require('fs'); (() => { console.log('wow') })()