Probably titled this one badly, will try and explain a bit better.
Basically I've been trying to make a function:
var readlineSync = require('readline-sync');
function i(context) {
readlineSync.question(context)
}
var Username = i("Testing the prompt: ")
console.log(Username)
I find having to write readlineSync.question over and over again rather irritating, but running the code returns this:
Testing the prompt: Hello
undefined
Am I doing something wrong?