String Window | NodeJS Code | How to test

I have written code in NodeJS.

How can i accept input parameters from user. Just like in Java we can use Scanner to get input from user.