Check the differences between:

console.log(x) and process.stdout.write(x)