Skip to content

Commit 7ff1bd9

Browse files
authored
fix(curriculum): typo in Data Types and Conditionals Lesson (freeCodeCamp#60669)
1 parent 725130e commit 7ff1bd9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

curriculum/challenges/english/16-the-odin-project/top-learn-data-types-and-conditionals/learn-data-types-and-conditionals-lesson-d.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dashedName: learn-data-types-and-conditionals-lesson-d
66
---
77
# --description--
88

9-
Seeing the example below You want to know the index of the last occurence of the word `The` in the string.
9+
Seeing the example below You want to know the index of the last occurrence of the word `The` in the string.
1010

1111
```javascript
1212
let sentence = "freeCodeCamp loves The Odin Project! The Odin Project is great!";
@@ -18,23 +18,23 @@ let sentence = "freeCodeCamp loves The Odin Project! The Odin Project is great!"
1818

1919
## --text--
2020

21-
Which method should be used to find the index of the last occurence of the word `The` in the string?
21+
Which method should be used to find the index of the last occurrence of the word `The` in the string?
2222

2323
## --answers--
2424

25-
The `includes()` method should be used to find the index of the last occurence of the word `The` in the string.
25+
The `includes()` method should be used to find the index of the last occurrence of the word `The` in the string.
2626

2727
---
2828

29-
The `lastIndexOf()` method should be used to find the index of the last occurence of the word `The` in the string.
29+
The `lastIndexOf()` method should be used to find the index of the last occurrence of the word `The` in the string.
3030

3131
---
3232

33-
The `indexOf()` method should be used to find the index of the last occurence of the word `The` in the string.
33+
The `indexOf()` method should be used to find the index of the last occurrence of the word `The` in the string.
3434

3535
---
3636

37-
The `search()` method should be used to find the index of the last occurence of the word `The` in the string.
37+
The `search()` method should be used to find the index of the last occurrence of the word `The` in the string.
3838

3939
## --video-solution--
4040

0 commit comments

Comments
 (0)