Javascript substring replace and output

Hi guys I wonder how to reconstruct string. I need to replace br tag inside string with ‘n’ new line character. So I’m simply doing it like this:

let a='Some<br>Text'
let b=a.replace(/<br>/gi, 'n');

But when I try to make an output to console this way:

console.log(JSON.stringify(b))

It shows the string like this:

SomenText

But if I’m doing output this way:

console.log(b)

It returns:

Some
Text

So why? And is it possible to use console.log(JSON.stringify(b)) to show the string in a proper way. I mean like this:
Some
Text