\n is not working



Please check above img files.

in my index.js I wrote

// String primitive

const message = ‘This is my\n first message’;

but over the console not getting new line.
Can anyone tell my I am reading

The Ultimate JavaScript Mastery Series - Part 1

Object / lecture no 12 strings

Please assist me , why I am not getting new line after This is my ’ over the console.
I believe “first message” should be new line but it’s not appearing please assist me for same.



and you should see

This is my
 first message

with two lines. console.log renders the newline as a new line whereas the Chrome console evaluation renders it as \n.