About 681,000 results
Open links in new tab
  1. String - JavaScript | MDN

    Jul 10, 2025 · Strings can be created as primitives, from string literals, or as objects, using the String() constructor: String primitives and string objects share many behaviors, but have other important …

  2. JavaScript Strings - W3Schools

    Strings are for storing text. Strings are written with quotes. A JavaScript string is zero or more characters written inside quotes. You can use single or double quotes: Strings created with single or double …

  3. JavaScript Strings - GeeksforGeeks

    Sep 25, 2025 · A JavaScript String is a sequence of characters, typically used to represent text. In JavaScript, there is no character type (Similar to Python and different from C, C++ and Java), so a …

  4. JavaScript Strings: The Basic Methods and Functions | JavaScript.com

    Strings in JavaScript are contained within a pair of either single quotation marks '' or double quotation marks "". Both quotes represent Strings but be sure to choose one and STICK WITH IT. If you start …

  5. The Beginner's Guide to JavaScript Strings By Examples

    Summary: in this tutorial, you’ll learn about the JavaScript string primitive type and how to use it to define strings. JavaScript strings are primitive values and are immutable. This means that modifying …

  6. Strings - The Modern JavaScript Tutorial

    Jan 17, 2024 · In JavaScript, the textual data is stored as strings. There is no separate type for a single character. The internal format for strings is always UTF-16, it is not tied to the page encoding. Let’s …

  7. JavaScript Operators

    JavaScript treats a string like an array of characters for the purpose of indexing. This means you can use square bracket notation ( []) with an index to access a specific character in a string.

  8. Handling text — strings in JavaScript - Learn web development | MDN

    Aug 29, 2025 · In this article, we'll look at all the common things that you really ought to know about strings when learning JavaScript, such as creating strings, escaping quotes in strings, and joining …

  9. How to Manipulate Strings in JavaScript – With Code Examples

    May 24, 2024 · String manipulation is a common task for programmers, whether it is extracting information from the string, converting letter cases, joining strings, or trimming extra white spaces.

  10. JavaScript String split () Method - W3Schools

    Description The split() method splits a string into an array of substrings. The split() method returns the new array. The split() method does not change the original string. If (" ") is used as separator, the …