Sunday, June 13, 2021

Hackerrank Day 0: Hello, World

function processData(inputString) {
// This line of code prints the first line of output
console.log("Hello, World.");
// Write the second line of output that prints the contents of 'inputString' here.
}
process.stdin.resume();
process.stdin.setEncoding("ascii");
_input = "";
process.stdin.on("data", function (input) {
_input += input;
});
process.stdin.on("end", function () {
processData(_input);
});

No comments:

Post a Comment

How to build an Express and Node.js app with Typescript

  In this tutorial, you will learn how to set up a Node.js and Express project with Typescript and live auto-reloading. Note that this metho...