Skip to content
Advertisement

Tag: alertify

Is there a way to display multi-line string in Javascript?

I have a function which receives a single line string and displays it without a problem using an alert pop up from alertify JS but when its a multi-line string it gives an error saying Uncaught SyntaxError: Invalid or unexpected token . Below is my function: The changes is the string am receiving and am displaying it in an alert

Advertisement