vtambourine
vtambourine

Reputation: 2149

Is there any analogue of "console" in server-side javascript V8?

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?

Upvotes: 3

Views: 456

Answers (1)

max
max

Reputation: 102240

Yes.

$ node -e "console.log('hello world')"; 

Upvotes: 1

Related Questions