File tree
Expand file treeCollapse file tree1 file changed
+2
-1
lines changed Expand file treeCollapse file tree1 file changed
+2
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -2440,7 +2440,8 @@ if (a.includes(name = prompt('Enter your name'))) {
|
2440 | 2440 | console.log(`hello ${name} , how are you?`); /* works if name specified value is available in array */
|
2441 | 2441 | } else console.log(`Welcome.`); // executes when name specified is not in array.
|
2442 | 2442 | ```
|
2443 |
| -### fromIndex is optional second parameter |
| 2443 | +### fromIndex is an optional second parameter in Array..includes() |
| 2444 | +This mentions that the value to be checked using Array..includes() must be after the specified index. |
2444 | 2445 |
|
2445 | 2446 | ```
|
2446 | 2447 | var pets = ['cat', 'dog', 'bat'];
|
|
You can’t perform that action at this time.
0 commit comments