vadnica-logo
X

JavaScript String Properties and Methods: indexOf()

The indexOf() method returns the first index of a specified value, or -1 if the value is not found. The indexOf() method starts at a specified index and searches from left to right. By default, the search starts at the first element (index 0) and ends at the last element. Negative start values are counted from the last element, but the search still proceeds from left to right.

EXAMPLE
RESULT

Thank you for visiting! Adding privacy policy.

© 2024 All rights reserved.

Vam je koda pomagala? Če želite podpreti moj trud pri pripravi vodičev in vzdrževanju strani, mi lahko namenite donacijo za kavo.