In node.js you can use console.log
or sys.puts
to print out to the screen.
What is the preferred method and what is the difference between thes
sys.puts([...]);
Is a synchronous output function. Simply it is a blocking function as in Node.js language.
console.log([data], [...]);
Prints to stdout with newline.
For more Info:
http://nodejs.org/api/stdio.html#stdio_console_log_data
http://nodejs.org/api/util.html#util_util_puts
Note: 'sys' module was renamed to be 'util' (Supported by link) It was a Fix #3577