Austin Muts

Austin Muts

  • 1.3k
  • 322
  • 120.8k

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)