Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Escape Sequences</title> </head> <body> <script> // Creating variables var str1 = "The quick brown fox \n jumps over the lazy dog."; document.write("<pre>" + str1 + "</pre>"); // Create line break var str2 = "C:\Users\Downloads"; document.write(str2 + "<br>"); // Prints C:UsersDownloads var str3 = "C:\\Users\\Downloads"; document.write(str3); // Prints C:\Users\Downloads </script> </body> </html>