wiki/content/20200922164551-strings.md

802 B

id title
02b70a4e-8f42-4de2-a536-dd42a42f7b47 JavaScript Strings

Syntax

Regular characters

console.log(`Down on the sea`)
console.log("Lie on the ocean")
console.log('Float on the ocean')

Escaped characters

console.log("This is the first line\nAnd this is the second")
console.log("A newline character is written like \"\\n\".")