Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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

function main (input) {
 input.split ("
").forEach (function (n){
     console.log (n);
});
}
process.stdin.resume ();
process.stdin.setEncoding ("utf-8")
process.stdin.on ("data", function (input){
        stdin_input += input;
});
process.stdin.on ("end", function (){
      main (stdin_input);
});
Source by forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #function
ADD COMMENT
Topic
Name
1+5 =