3

To dump some debugging information in client-side javascript I can use console.log(myVar). Can I do the same thing in server-side javascript which runs on V8? Is there any way to dump data to error_log file or something?

vtambourine
  • 2,109
  • 3
  • 18
  • 27

1 Answers1

1

Yes.

$ node -e "console.log('hello world')"; 
max
  • 96,212
  • 14
  • 104
  • 165