Jsref String Includes
# JavaScript includes() Method
[ JavaScript String Object](#)
## Example
Find out if a string contains "Tutorial":
var str = "Hello world, welcome to the Tutorialγ"; var n = str.includes("Tutorial");
_n_ Output:
true
[Try it Β»](#)
* * *
## Definition and Usage
The includes() method is used to determine whether a string contains a specified substring.
It returns true if a match is found, otherwise it returns false.
**Note:** The includes() method is case-sensitive.
* * *
## Browser Support
| Method | | | | | |
| --- | --- | --- | --- | --- | --- |
| includes() | 41 | 12.0 | 40 | 9 | 28 |
* * *
## Syntax
string.includes(searchvalue, start)
## Parameter Values
| Parameter | Description |
| --- | --- |
| _searchvalue_ | Required. The string to search for. |
| _start_ | Optional. The position in the string to start the search from. Default is 0. |
## Return Value
| Type | Description |
| --- | --- |
| Boolean | Returns true if a match is found, otherwise returns false. |
## Technical Details
| JavaScript Version: | ECMAScript 6 |
| --- |
* * *
## More Examples
## Example
Search for a string starting from index position 12:
var str = "Hello world, welcome to the Tutorial."; var n = str.includes("world", 12);
_n_ Output:
false
[Try it Β»](#)
* * JavaScript String Object](#)
YouTip