Рассмотрим следующий код:В Node.js есть ли способ распечатать n r на консоли?
var myVar = 'This is my text.\nAnd other information.\rHow to console.log\n\r?';
console.log(myVar);
Выход:
This is my text.
And other information.
How to console.log
?
Как я могу утешить с \n
, \r
& \n\r
?