const fs = require("fs");
const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question(":", (path) => {
let file_path = path;
rl.question(":", (name) => {
let file_name = name;
console.log(file_path);
console.log(file_name);
rl.close();
});
});
is there a way to define global variables directly and then use readline to read in variables?