profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

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".')