process.stdin.resume(); process.stdin.setEncoding('utf8'); const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); var lines = []; r1.on("line",(line) => { lines.push(line); }); r1.on("close",() => { console.log("Hello World!"); });