DEV Community

Calvin
Calvin

Posted on

Reading Snippets [5]

In Javascript,backlash () is used to escape characters or give it a special power. When we escape the character n, it becomes the newline character \n.

Top comments (1)

Collapse
 
galiciandeveloper profile image
Yoel Macia

For example:


let x = "Hello \
World!";