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:
<
In plain JavaScript, simply use response = readline() after printing a prompt.
response = readline()
In Node.js, you'll need to use the readline module: const readline = require('readline')
const readline = require('readline')