For javascript programming example code, example: input a b output A+B results

  node.js, question

What is the standard input format, which can be compiled and executed under the node environment. in the command line, it seems that process is used

process.stdin.resume();
 process.stdin.setEncoding('utf-8');
 var input = '';
 process.stdin.on('data', function (data) {
 Input = data;
 });
 process.stdin.on('end', function () {
 var arr = input.split("\n");
 
 //What do you want to do next
 });