javascript escape newline 1

javascript escape newline

"\\n";

Here is what the above code is Doing:
1. We’re creating a variable called “my_string” and setting it equal to “Hello World!”
2. We’re creating a variable called “my_string_with_newlines” and setting it equal to “Hello\nWorld!”
3. We’re creating a variable called “my_string_with_newlines_escaped” and setting it equal to “Hello\\nWorld!”

Similar Posts