JavaScript Strings

Escape Notation

In JavaScript, an escape character is indicated by a backward slash "\". The character that follows the "\" would be interpretated based on the escape notation. Besides the examples below, here is the full documentation for how you might use it.

Add quotation marks inside a string

Add new lines inside a string