0
The escape character
i didn't get what is really used for i mean i understand that it turns the special characters to strings but also can be used for new line tab etc. when i tried it on the sololearns compiler it didnt work as new line and tab idk if its about the compiler or me
4 Respostas
+ 5
\t It worked well for prompt alert confirm box
for document.write support for \",\',\\ and \(data character)
+ 5
use
document.write("<br>"+"\"I am the Flash or Batman?\".<br> Btw I pity wife of The Flash a lot");
<br> doesn't have any close tag
0
ok ty ^^
- 1
so do i need to use </br> html tag to write the 'i am a javascript programmer' sentence to a new line ?