Utilizor
Contact Us

String Basics

Working with text strings.

String Basics

A JavaScript string is zero or more characters written inside quotes.

let text = "John Doe";

You can use single or double quotes.

You can use quotes inside a string, as long as they don't match the quotes surrounding the string.

Example

let answer = "It's alright";