Promptles
Programming Basics

String

beginner

Definition

A piece of text in code, written inside quotation marks.

In the wild

`"Hello, Ana"` is a string. So is `"42"`, which is text rather than a number, so in JavaScript `"42" + 1` gives `"421"`, not 43.

More from Programming Basics