Hello,
I am studying javascript from eloquent javascript book.
It says:
"This is the first line\nAnd this is the second"
I tried making a web page by writing
document.write("This is the first line\nAnd this is the second");

The desired effect is:

This is the first line
And this is the second

But I get this:

This is the first line And this is the second

I tried writing <br> inside and it worked. But Why writing an escape \n didn't? Anything I am doing wrong? I am using firefox

Thank you