From d3901a4b105b9828e6b0278a6dcc757c0190c5f5 Mon Sep 17 00:00:00 2001 From: Raagul Vignesh R <94353294+RaagulVigneshR@users.noreply.github.com> Date: Fri, 2 Dec 2022 17:31:05 +0530 Subject: [PATCH] Create helloworld.js --- 01_Day_Introduction/helloworld.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 01_Day_Introduction/helloworld.js diff --git a/01_Day_Introduction/helloworld.js b/01_Day_Introduction/helloworld.js new file mode 100644 index 0000000..efc5647 --- /dev/null +++ b/01_Day_Introduction/helloworld.js @@ -0,0 +1,16 @@ +function processData(inputString) { + console.log("Hello, World."); + console.log(inputString); +} + + +process.stdin.resume(); +process.stdin.setEncoding("ascii"); +_input = ""; +process.stdin.on("data", function (input) { + _input += input; +}); + +process.stdin.on("end", function () { + processData(_input); +});