Is it possible to define a global-scope function (i.e. ABC
) in Node.js app, so in any other .js files it was possible to call that function directly without need to require/import ( like we call any global-scope i.e. console.log
)? .
(note: I couldn’t find analog question on SE).