JS Challenge: Escape sequences in Strings

I was solving this challenge which asks to assign a variable a value of:


and my accepted answer is: “FirstLine\n\SecondLine\\rThirdLine”.

I am confused as carriage return(\r) takes the cursor to the beginning of current line and then how is a new line there between second line and third line?