Looking to enhance the appearance of my console log output in a JavaScript script by utilizing different styling options.
Here's a sample scenario:
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);
Desired output:
Title 1
This is some text that follows the first title
Title 2
This is some other text that follows
Struggling to achieve this with available formatting options, such as
console.log(`%c ${s}`, 'font-weight:bold');
since it bolds everything inside.
Any tips or suggestions?
Appreciate the help!