mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): remove unnecessary double backticks (#64098)
This commit is contained in:
committed by
GitHub
parent
981d0c301c
commit
5b3a248e72
+9
-9
@@ -73,7 +73,7 @@ console.log(index);
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ``indexOf()`` method returns the index of the first occurrence of the given element in the array.
|
||||
The `indexOf()` method returns the index of the first occurrence of the given element in the array.
|
||||
|
||||
---
|
||||
|
||||
@@ -85,7 +85,7 @@ The ``indexOf()`` method returns the index of the first occurrence of the given
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ``indexOf()`` method returns the index of the first occurrence of the given element in the array.
|
||||
The `indexOf()` method returns the index of the first occurrence of the given element in the array.
|
||||
|
||||
---
|
||||
|
||||
@@ -93,7 +93,7 @@ The ``indexOf()`` method returns the index of the first occurrence of the given
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ``indexOf()`` method returns the index of the first occurrence of the given element in the array.
|
||||
The `indexOf()` method returns the index of the first occurrence of the given element in the array.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
@@ -115,7 +115,7 @@ console.log(index);
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ``indexOf()`` method returns `-1` if the given element is not found in the array.
|
||||
The `indexOf()` method returns `-1` if the given element is not found in the array.
|
||||
|
||||
---
|
||||
|
||||
@@ -127,7 +127,7 @@ The ``indexOf()`` method returns `-1` if the given element is not found in the a
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ``indexOf()`` method returns `-1` if the given element is not found in the array.
|
||||
The `indexOf()` method returns `-1` if the given element is not found in the array.
|
||||
|
||||
---
|
||||
|
||||
@@ -135,7 +135,7 @@ An error will occur.
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ``indexOf()`` method returns `-1` if the given element is not found in the array.
|
||||
The `indexOf()` method returns `-1` if the given element is not found in the array.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
@@ -157,7 +157,7 @@ console.log(index);
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ``indexOf()`` method can take a second argument to specify the starting index for the search.
|
||||
The `indexOf()` method can take a second argument to specify the starting index for the search.
|
||||
|
||||
---
|
||||
|
||||
@@ -165,7 +165,7 @@ The ``indexOf()`` method can take a second argument to specify the starting inde
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ``indexOf()`` method can take a second argument to specify the starting index for the search.
|
||||
The `indexOf()` method can take a second argument to specify the starting index for the search.
|
||||
|
||||
---
|
||||
|
||||
@@ -177,7 +177,7 @@ The ``indexOf()`` method can take a second argument to specify the starting inde
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ``indexOf()`` method can take a second argument to specify the starting index for the search.
|
||||
The `indexOf()` method can take a second argument to specify the starting index for the search.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
|
||||
+4
-4
@@ -135,7 +135,7 @@ console.log(arr);
|
||||
|
||||
### --feedback--
|
||||
|
||||
Consider what the second parameter (`0`) means in the ``splice()`` method.
|
||||
Consider what the second parameter (`0`) means in the `splice()` method.
|
||||
|
||||
---
|
||||
|
||||
@@ -143,7 +143,7 @@ Consider what the second parameter (`0`) means in the ``splice()`` method.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Consider what the second parameter (`0`) means in the ``splice()`` method.
|
||||
Consider what the second parameter (`0`) means in the `splice()` method.
|
||||
|
||||
---
|
||||
|
||||
@@ -151,7 +151,7 @@ Consider what the second parameter (`0`) means in the ``splice()`` method.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Consider what the second parameter (`0`) means in the ``splice()`` method.
|
||||
Consider what the second parameter (`0`) means in the `splice()` method.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
@@ -199,7 +199,7 @@ Remember, array indices start from 0.
|
||||
|
||||
## --text--
|
||||
|
||||
What does the ``splice()`` method return?
|
||||
What does the `splice()` method return?
|
||||
|
||||
## --answers--
|
||||
|
||||
|
||||
+9
-9
@@ -86,7 +86,7 @@ console.log(arr.includes(3, 3));
|
||||
|
||||
### --feedback--
|
||||
|
||||
The second parameter of ``includes()`` specifies the starting position for the search.
|
||||
The second parameter of `includes()` specifies the starting position for the search.
|
||||
|
||||
---
|
||||
|
||||
@@ -98,7 +98,7 @@ The second parameter of ``includes()`` specifies the starting position for the s
|
||||
|
||||
### --feedback--
|
||||
|
||||
The second parameter of ``includes()`` specifies the starting position for the search.
|
||||
The second parameter of `includes()` specifies the starting position for the search.
|
||||
|
||||
---
|
||||
|
||||
@@ -106,7 +106,7 @@ This will throw an error.
|
||||
|
||||
### --feedback--
|
||||
|
||||
The second parameter of ``includes()`` specifies the starting position for the search.
|
||||
The second parameter of `includes()` specifies the starting position for the search.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
@@ -127,7 +127,7 @@ console.log(arr.includes("C"));
|
||||
|
||||
### --feedback--
|
||||
|
||||
Remember that ``includes()`` is case-sensitive when dealing with strings.
|
||||
Remember that `includes()` is case-sensitive when dealing with strings.
|
||||
|
||||
---
|
||||
|
||||
@@ -139,7 +139,7 @@ Remember that ``includes()`` is case-sensitive when dealing with strings.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Remember that ``includes()`` is case-sensitive when dealing with strings.
|
||||
Remember that `includes()` is case-sensitive when dealing with strings.
|
||||
|
||||
---
|
||||
|
||||
@@ -147,7 +147,7 @@ This will throw an error.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Remember that ``includes()`` is case-sensitive when dealing with strings.
|
||||
Remember that `includes()` is case-sensitive when dealing with strings.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
@@ -168,7 +168,7 @@ console.log(arr.includes("3"));
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ``includes()`` method uses strict equality (`===`) for comparison.
|
||||
The `includes()` method uses strict equality (`===`) for comparison.
|
||||
|
||||
---
|
||||
|
||||
@@ -180,7 +180,7 @@ The ``includes()`` method uses strict equality (`===`) for comparison.
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ``includes()`` method uses strict equality (`===`) for comparison.
|
||||
The `includes()` method uses strict equality (`===`) for comparison.
|
||||
|
||||
---
|
||||
|
||||
@@ -188,7 +188,7 @@ This will throw an error.
|
||||
|
||||
### --feedback--
|
||||
|
||||
The ``includes()`` method uses strict equality (`===`) for comparison.
|
||||
The `includes()` method uses strict equality (`===`) for comparison.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
|
||||
+1
-1
@@ -187,7 +187,7 @@ Think about when you want to provide a fallback value.
|
||||
|
||||
---
|
||||
|
||||
It returns the second value only if the first is ``null`` or `undefined`.
|
||||
It returns the second value only if the first is `null` or `undefined`.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -390,7 +390,7 @@ print(joined_str) # ?
|
||||
|
||||
---
|
||||
|
||||
``'dashed name'``
|
||||
`'dashed name'`
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user