fix(curriculum): update last question of working with strings in javascript lecture (#57939)

This commit is contained in:
Lex Garey-Fernandez
2025-01-06 13:19:58 -07:00
committed by GitHub
parent b209cf82eb
commit 6552409723
@@ -86,7 +86,7 @@ Remember, you can pass a second argument to the method to control where the sear
## --text--
What type of function is `indexOf` in JavaScript?
What type of method is `indexOf` in JavaScript?
## --answers--
@@ -94,15 +94,15 @@ A standalone function.
### --feedback--
Methods are functions that belong to specific objects in JavaScript.
Consider the type of object that deals with text in JavaScript.
---
A method of the `Array` object.
A method of the `Date` object.
### --feedback--
Methods are functions that belong to specific objects in JavaScript.
Consider the type of object that deals with text in JavaScript.
---
@@ -110,11 +110,11 @@ A method of the `String` object.
---
A mathematical function.
A method of the `Math` object.
### --feedback--
Methods are functions that belong to specific objects in JavaScript.
Consider the type of object that deals with text in JavaScript.
## --video-solution--