Austin Muts

Austin Muts

  • 1.4k
  • 333
  • 126.4k

String new line break in typescript

May 14 2024 4:08 PM

I want to put line breaks on a string on angular.ts side but '\n' is not working.

var msg = "hello friend!" + '\n'

msg+= "You fine there"

console.log(msg);

What must i do to achieve the string line break?


Answers (7)