I am trying to display a string on multilines with \n
in the Postman Console. How can I do this?
Example:
var mystr='line\n another line\n another line';
console.log(mystr);
Expecting:
line
another line
another line
Getting:
lineanother lineanother line
Note: it is working as expected in Firefox scratchpad.
type 3 times console.log:
console.log('linea1');
console.log('linea2');
console.log('linea3');
You can print multiline text like this:
console.log("hello", '\n', "world");
Which will show up like this in console:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With