Difference between console.log and sys.puts in node.js?

后端 未结 7 1748
無奈伤痛
無奈伤痛 2021-01-31 01:38

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

7条回答
  •  说谎
    说谎 (楼主)
    2021-01-31 02:20

    console.dir(objectToInspect)
    

    This might be another way to inspect objects.

提交回复
热议问题