About 288,000 results
Open links in new tab
  1. JavaScript String substring () Method - W3Schools

    The substring() method extracts characters, between two indices (positions), from a string, and returns the substring. The substring() method extracts characters from start to end (exclusive).

  2. String.prototype.substring () - JavaScript | MDN

    Jul 10, 2025 · The substring () method of String values returns the part of this string from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.

  3. Substring - Wikipedia

    In formal language theory and computer science, a substring is a contiguous sequence of characters within a string. For instance, " the best of " is a substring of " It was the best of times ".

  4. JavaScript Substring (): Extract a Substring from a String

    In this tutorial, you'll learn how to use the JavaScript substring () method to extract a substring from a string.

  5. Substrings: A Comprehensive Guide - GeeksforGeeks

    Jul 23, 2025 · Definition: A substring is a contiguous sequence of characters within a larger string. It is essentially a smaller portion of a string extracted from the original string. Substrings are …

  6. JavaScript String substring () Method: Extracting Substrings

    Feb 6, 2025 · The substring() method in JavaScript is a powerful tool for extracting a portion of a string. It allows you to create a new string that contains only a specific range of characters …

  7. JavaScript substring (): How to Extract Substrings Easily in JS

    Oct 14, 2025 · This JavaScript substring example will show you how to extract parts of a string efficiently. In this blog, we will discuss what the substring () method in JS is, its syntax, real …