From 7ff1bd91fb6d7b7ab33d3ba7dcba5c9ad1bab894 Mon Sep 17 00:00:00 2001 From: Abhinav Mohandas <141326344+ItsAbhinavM@users.noreply.github.com> Date: Mon, 2 Jun 2025 22:26:24 +0530 Subject: [PATCH] fix(curriculum): typo in Data Types and Conditionals Lesson (#60669) --- .../learn-data-types-and-conditionals-lesson-d.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/curriculum/challenges/english/16-the-odin-project/top-learn-data-types-and-conditionals/learn-data-types-and-conditionals-lesson-d.md b/curriculum/challenges/english/16-the-odin-project/top-learn-data-types-and-conditionals/learn-data-types-and-conditionals-lesson-d.md index 56e96af82ef..313f9081e07 100644 --- a/curriculum/challenges/english/16-the-odin-project/top-learn-data-types-and-conditionals/learn-data-types-and-conditionals-lesson-d.md +++ b/curriculum/challenges/english/16-the-odin-project/top-learn-data-types-and-conditionals/learn-data-types-and-conditionals-lesson-d.md @@ -6,7 +6,7 @@ dashedName: learn-data-types-and-conditionals-lesson-d --- # --description-- -Seeing the example below You want to know the index of the last occurence of the word `The` in the string. +Seeing the example below You want to know the index of the last occurrence of the word `The` in the string. ```javascript 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!" ## --text-- -Which method should be used to find the index of the last occurence of the word `The` in the string? +Which method should be used to find the index of the last occurrence of the word `The` in the string? ## --answers-- -The `includes()` method should be used to find the index of the last occurence of the word `The` in the string. +The `includes()` method should be used to find the index of the last occurrence of the word `The` in the string. --- -The `lastIndexOf()` method should be used to find the index of the last occurence of the word `The` in the string. +The `lastIndexOf()` method should be used to find the index of the last occurrence of the word `The` in the string. --- -The `indexOf()` method should be used to find the index of the last occurence of the word `The` in the string. +The `indexOf()` method should be used to find the index of the last occurrence of the word `The` in the string. --- -The `search()` method should be used to find the index of the last occurence of the word `The` in the string. +The `search()` method should be used to find the index of the last occurrence of the word `The` in the string. ## --video-solution--