mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): update last question of working with strings in javascript lecture (#57939)
This commit is contained in:
committed by
GitHub
parent
b209cf82eb
commit
6552409723
+6
-6
@@ -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--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user