how to create line breaks in console.log() in node

后端 未结 7 1648
一生所求
一生所求 2021-01-01 13:11

Is there a way to get new lines in console.log when printing multiple objects?

Suppose we have console.log(a,b,c) where a, b,

7条回答
  •  天涯浪人
    2021-01-01 13:41

    You need to use \n inside the console.log like this:

    console.log('one','\n','two');
    

提交回复
热议问题