File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,7 @@ if (a.includes(name = prompt('Enter your name'))) {
24412441
} else console.log(`Welcome.`); // executes when name specified is not in array.
24422442
```
24432443
### 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+
This mentions that the value to be checked using Array..includes() must be from the specified index.
24452445

24462446
```
24472447
var pets = ['cat', 'dog', 'bat'];

0 commit comments

Comments
 (0)