0

I have not been able to find this function in Chrome or Firefox but have seen references to it. Given an arbitrary function testMe(param1, param2), I would like to have another function:

function testMeConsole(){
    console.log('Enter param1:');
    var param1 = readLine();
    console.log('Enter param2:');
    var param2 = readLine();
    return testMe(param1, param2);
}

Again, I've seen the readline (or readLine?) function referenced but it shows as not defined for both Chrome and Firefox

Reference: Take user input with JavaScript in the console

2
  • 1
    The question you referenced says it's in spidermonkey. Commented Feb 14, 2019 at 15:35
  • Which I thought was the JS engine for Firefox (I have version 65) but it's not a recognized function Commented Feb 14, 2019 at 16:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.