I am trying to set up a nicer console log output on a javascript script I'm running by using the available styling options.
In this case:
s=`Title 1 \n This is some text that follows the first title`;
s=`${s} \n Title 2 \n This is some other text that follows`;
console.log(s);
I would like to have an output as:
Title 1
This is some text that follows the first title
Title 2
This is some other text that follows
But given the examples I've found for styling, I can't find how to do so, as
console.log(`%c ${s}`, 'font-weight:bold');
would bolden everything inside.
Can I have some advice?
Thanks!