Day 1: Print The Input
Submissions will no longer be placed on the leaderboard. You may still attempt this problem for practice.
Task
Use what you learned in the previous challenge to complete the function by printing the parameter to the console.
Input Format
The first and only line of input contains a string.
Constraints
- String length
Output Format
Print to the console.
Sample Input
How many chickens does it take to cross the road?
Sample Output
How many chickens does it take to cross the road?
xxxxxxxxxx
15
1
function processData(input) {
2
//Enter your code here
3
}
4
5
process.stdin.resume();
6
process.stdin.setEncoding("ascii");
7
_input = "";
8
process.stdin.on("data", function (input) {
9
_input += input;
10
});
11
12
process.stdin.on("end", function () {
13
processData(_input);
14
});
15