Skip to content

Commit 8e90144

Browse files
fix meta data
1 parent 1184560 commit 8e90144

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1+
---
12
Title: '.lastIndexOf()'
23
Description: 'Returns the index of the last occurrence of a specified substring within a string, or -1 if the substring is not found.'
34
Subjects:
4-
55
- 'Computer Science'
66
- 'Web Development'
7-
Tags:
7+
Tags:
88
- 'Strings'
99
- 'Methods'
1010
- 'JavaScript'
11-
CatalogContent:
11+
CatalogContent:
1212
- 'learn-javascript'
1313
- 'paths/web-development'
14-
1514
---
1615

1716
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)