About 16,800 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 …

  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 …

  3. JavaScript String substring () Method - GeeksforGeeks

    Jan 16, 2026 · The substring () method is used to extract a portion of a string. It returns a new string without changing the original …

  4. JavaScript String Methods - W3Schools

    JavaScript String substring () substring () is similar to slice (). The difference is that start and end values less than 0 are treated as 0 …

  5. 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.

  6. String - JavaScript | MDN - MDN Web Docs

    May 22, 2026 · String.prototype.substr () Returns a portion of the string, starting at the specified index and extending for a given …

  7. JavaScript substring() Method: Complete Guide with Examples

    Apr 3, 2026 · Master JavaScript's substring() method with visual examples, comparison with slice() and substr(), TypeScript usage, …

  8. JavaScript String substring () Method - Online Tutorials Library

    Here is another example of the JavaScript substring () method. We use this method to extract a part of the string from the string …

  9. Javascript String substring () - Programiz

    In this tutorial, we will learn about the JavaScript String substring () method with the help of examples. In this article, you will learn …

  10. javascript - What is the difference between substr and substring ...

    Sep 19, 2010 · As hinted at in yatima2975's answer, there is an additional difference: substr () accepts a negative starting position as …