Can I use plain JavaScript (no html composition) to read a value from console? (like in Java and C++)
<p>This is a class project, the teacher will accept only one (.js) file as the submit. 
In the project, I will need to read command from the console and react to it. Is that possible in js? I have tried event, however it seems like must base on html components.</p>