wiki/content/20200922164551-strings.md

819 B

date id title
2020-09-22 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\".")