Skip to content

Commit 6e1620b

Browse files
committed
Format
1 parent 806cea0 commit 6e1620b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

content/javascript/concepts/strings/terms/lastIndexOf/lastIndexOf.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
Title: '.lastIndexOf()'
33
Description: 'Returns the index of the last occurrence of a specified substring within a string, or -1 if the substring is not found.'
44
Subjects:
5-
- 'Computer Science'
6-
- 'Web Development'
5+
- 'Computer Science'
6+
- 'Web Development'
77
Tags:
8-
- 'Strings'
9-
- 'Methods'
10-
- 'JavaScript'
8+
- 'Strings'
9+
- 'Methods'
10+
- 'JavaScript'
1111
CatalogContent:
12-
- 'learn-javascript'
13-
- 'paths/web-development'
12+
- 'learn-javascript'
13+
- 'paths/web-development'
1414
---
1515

1616
The **`.lastIndexOf()`** method in JavaScript returns the position of the last occurrence of a specified substring within a [string](https://www.codecademy.com/resources/docs/javascript/strings). If the substring is not found, it returns `-1`. It performs a case-sensitive search and can take an optional starting position from which to begin the search backwards.

0 commit comments

Comments
 (0)