7
Answers

String new line break in typescript

Austin Muts

Austin Muts

May 14
489
1

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)