About 18,300,000 results
Open links in new tab
  1. JavaScript index Property - W3Schools

    The index property reflects a number (n) such that (n 1) is the character where the first match starts. If myArray is the result of a string's match () method call, myArray.input.charAt (myArray.index) is the first character of the first match.

  2. JavaScript String indexOf() Method - W3Schools

    The indexOf() method returns the position of the first occurrence of a value in a string. The indexOf() method returns -1 if the value is not found. The indexOf() method is case sensitive. Required. The string to search for. Optional. The position to start from (default is 0). The first position where the search-value occurs. -1 if it never occurs.

  3. Indexed collections - JavaScript | MDN - MDN Web Docs

    4 days ago · This chapter introduces collections of data which are ordered by an index value. This includes arrays and array-like constructs such as Array objects and TypedArray objects. An array is an ordered list of values that you refer to with a name and an index.

  4. JavaScript Array indexOf() Method - W3Schools

    The indexOf() method returns the first index (position) of a specified value. The indexOf() method returns -1 if the value is not found. The indexOf() method starts at a specified index and searches from left to right (from the given start postion to the end of the array).

  5. Understanding Javascript Indexing: An Essential Guide

    Aug 13, 2023 · Indexing in JavaScript involves accessing specific elements within data structures, such as arrays and strings, based on their position or ‘index’. Having a firm comprehension of indexing is crucial to efficiently navigate, manipulate, …

  6. Array.prototype.indexOf() - JavaScript | MDN - MDN Web Docs

    Mar 13, 2025 · The indexOf() method of Array instances returns the first index at which a given element can be found in the array, or -1 if it is not present.

  7. JavaScript index Property : Array Object - w3resource

    Aug 19, 2022 · The index property is a read-only property. It contains the position of a regular expression match within a string. Version. Implemented in JavaScript 1.2. Syntax. array.index . Example: In the following web document a regular expression string …

  8. JavaScript String indexOf() Method - GeeksforGeeks

    Sep 30, 2024 · The JavaScript indexOf () method helps locate a substring within a string and returns its position. This method is case-sensitive, meaning that “Hello“.indexOf (“hello”) will return -1 due to the mismatch in the case. searchValue: The searchValue is …

  9. String.prototype.indexOf() - JavaScript | MDN - MDN Web Docs

    Mar 13, 2025 · The indexOf() method of String values searches this string and returns the index of the first occurrence of the specified substring. It takes an optional starting position and returns the first occurrence of the specified substring at an index greater than or …

  10. JavaScript Array Indexing and Manipulation Guide - CodingNomads

    You'll learn to navigate through arrays using index numbers, allowing you to access and alter any item. This exploration will the basics of referencing individual elements, assigning values to specific positions, adding new elements and removing elements.

  11. Some results have been removed
Refresh