Question

Write a JavaScript function to remove all newline characters from a string?

Login to Submit

Examples

Remove all line breaks from the text so everything becomes one continuous line.

input:"Hello\nWorld" 
output:"HelloWorld"