A piece of text in your code, wrapped in quotes like 'hello' or "world".
A string is text data in your code. It is called a 'string' because it is a sequence of characters strung together. Strings must be wrapped in quotes (single, double, or backticks) so JavaScript knows it is text, not code.
Strings are one of the most fundamental data types. You use them for names, messages, URLs, and any text. JavaScript provides methods to manipulate strings—find characters, replace text, convert case, split into parts. Strings are stored in variables, passed as props to components, encoded in JSON, and displayed in code editors with syntax highlighting.
Understanding strings is essential because text appears everywhere in code. You will read strings from user input, display them on pages, and send them to servers.
We give you the skills to build, deploy, and own a full product. Professional stack, AI co-pilot, no coding background required.