Is there a way i can export variables from regular javascript to be used in expressjs?
i have tried using 'exports' but it didn't work.
for example in regular js file
var search ='hello';
exports= search;
then in express file
var search= require("./file.js");
console.log(search);
all i get in the console is '{}'.
What i want is for the variable 'search' to work in my express file as well. is there a way to do this