Strings in JavaScript are used for storing and manipulating text. Strings can be enclosed in single quotes, double quotes, or backticks (template literals).
length — String lengthtoUpperCase() / toLowerCase()trim() — Remove whitespaceincludes() — Check substringreplace() / replaceAll()split() — Split to arrayslice(start, end) — Extract substringindexOf() — Find positionEdit the code below and click Run to see the result live.