diff --git a/curriculum/challenges/english/25-front-end-development/quiz-javascript-strings/66edc31c44f1b9c1d5c5ebca.md b/curriculum/challenges/english/25-front-end-development/quiz-javascript-strings/66edc31c44f1b9c1d5c5ebca.md index ce62fb5c03a..69e599f250b 100644 --- a/curriculum/challenges/english/25-front-end-development/quiz-javascript-strings/66edc31c44f1b9c1d5c5ebca.md +++ b/curriculum/challenges/english/25-front-end-development/quiz-javascript-strings/66edc31c44f1b9c1d5c5ebca.md @@ -21,19 +21,19 @@ What is the return value for the `includes()` method? #### --distractors-- -If the substring is found within the string, the method returns the string otherwise, it returns `undefined`. +If the substring is found within the string, the method returns the string. Otherwise, it returns `undefined`. --- -If the substring is found within the string, the method returns `true` otherwise, it returns an empty string. +If the substring is found within the string, the method returns `true`. Otherwise, it returns an empty string. --- -If the substring is found within the string, the method returns the string otherwise, it returns `null`. +If the substring is found within the string, the method returns the string. Otherwise, it returns `null`. #### --answer-- -If the substring is found within the string, the method returns `true` otherwise, it returns `false`. +If the substring is found within the string, the method returns `true`. Otherwise, it returns `false`. ### --question-- diff --git a/curriculum/challenges/english/25-front-end-development/review-javascript-strings/6723c1946e4cd7909a836bb4.md b/curriculum/challenges/english/25-front-end-development/review-javascript-strings/6723c1946e4cd7909a836bb4.md index 139d3156e40..8f145bc46a8 100644 --- a/curriculum/challenges/english/25-front-end-development/review-javascript-strings/6723c1946e4cd7909a836bb4.md +++ b/curriculum/challenges/english/25-front-end-development/review-javascript-strings/6723c1946e4cd7909a836bb4.md @@ -62,7 +62,7 @@ console.log(char); // A ## Other Common String Methods - **The `indexOf` Method**: This method is used to search for a substring within a string. If the substring is found, `indexOf` returns the index (or position) of the first occurrence of that substring. If the substring is not found, `indexOf` returns -1, which indicates that the search was unsuccessful. -- **The `includes()` Method**: This method is used to check if a string contains a specific substring. If the substring is found within the string, the method returns true otherwise, it returns false. +- **The `includes()` Method**: This method is used to check if a string contains a specific substring. If the substring is found within the string, the method returns true. Otherwise, it returns false. - **The `slice()` Method**: This method extracts a portion of a string and returns a new string, without modifying the original string. It takes two parameters: the starting index and the optional ending index. - **The `toUpperCase()` Method**: This method converts all the characters to uppercase letters and returns a new string with all uppercase characters. - **The `toLowerCase()` Method**: This method converts all characters in a string to lowercase. diff --git a/curriculum/challenges/english/25-front-end-development/review-javascript/6723d3cfdd0717d3f1bf27e3.md b/curriculum/challenges/english/25-front-end-development/review-javascript/6723d3cfdd0717d3f1bf27e3.md index 0d30acfe486..322255aaff6 100644 --- a/curriculum/challenges/english/25-front-end-development/review-javascript/6723d3cfdd0717d3f1bf27e3.md +++ b/curriculum/challenges/english/25-front-end-development/review-javascript/6723d3cfdd0717d3f1bf27e3.md @@ -262,7 +262,7 @@ console.log(char); // A ## Other Common String Methods - **The `indexOf` Method**: This method is used to search for a substring within a string. If the substring is found, `indexOf` returns the index (or position) of the first occurrence of that substring. If the substring is not found, `indexOf` returns -1, which indicates that the search was unsuccessful. -- **The `includes()` Method**: This method is used to check if a string contains a specific substring. If the substring is found within the string, the method returns true otherwise, it returns false. +- **The `includes()` Method**: This method is used to check if a string contains a specific substring. If the substring is found within the string, the method returns true. Otherwise, it returns false. - **The `slice()` Method**: This method extracts a portion of a string and returns a new string, without modifying the original string. It takes two parameters: the starting index and the optional ending index. - **The `toUpperCase()` Method**: This method converts all the characters to uppercase letters and returns a new string with all uppercase characters. - **The `toLowerCase()` Method**: This method converts all characters in a string to lowercase.