Created
January 28, 2016 08:59
-
-
Save amriunix/311f0cf7a50220bc4fb5 to your computer and use it in GitHub Desktop.
node js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("1"); | |
process.stdin.on('data', function(data) { | |
console.log("2"); | |
process.stdout.write(data.toString().trim()); | |
}); | |
console.log("3"); | |
console.log("4"); | |
/* | |
output : | |
1 | |
3 | |
4 | |
hi | |
2 | |
hi | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment