function processData(input) {
    console.log(input);
} 


process.stdin.resume();
process.stdin.setEncoding("ascii");
_input = "";
process.stdin.on("data", function (input) {
    _input += input;
});


process.stdin.on("end", function () {
   processData(_input);
});

"use strict";


function processData(input) {
    console.log(input);
} 


process.stdin.resume();
process.stdin.setEncoding("ascii");
_input = "";
process.stdin.on("data", function (input) {
    _input += input;
});


process.stdin.on("end", function () {
   processData(_input);
});

Update day1-printTheInput.js