String

noun

say it: “STRING” /strɪŋ/

A piece of text in quotes, such as "latte" or 'Hello, Sam'. JavaScript accepts single quotes, double quotes or backticks.

What is String in JavaScript?

String — Text inside quotes, like "hello" or 'coffee'.

const city = "Denver";

In a sentence

  • “The drink name "oat milk latte" is a string, so it goes in quotes.”

Level: Novice · More JavaScript terms at this level

Updated

In other subjects