I'm currently using spidermonkey to run my JavaScript code. I'm wondering if there's a function to get input from the console similar to how Python does this:
var = raw_input()
Or in C++:
std::cin >> var;
I've looked around and all I've found so far is how to get input from the browser using the prompt()
and confirm()
functions.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…