JavaScript String includes

JavaScript String includes


JavaScript String includes() method
In this Tutorial, we will learn about JavaScript String includes() method with the help of following below:
The includes() method will be true if the string includes the specified word else return false.
Syntax
var includesStr = str.includes(searchString, position);
Example
Output
true
Example2
Output 
false