Question and answer is powered by AnsPress.io
I have a string
var x="Hello";
Now I want to check ell substring is their or not using javascript.
Use javascript includes() method.
var x=”hello”;
var y=x.includes(“ell”);
The result of y will be: true