I am working with a mongoDB script where in I want to take an input and I'll place it to a variable which i can play with.
i have tried
var ABcD = prompt('type a word: ');
print(ABcD);
but I think this only works on other javascript, not in mongoDB. Any help?