Answers for "javascript has string"

1

javascript has string

const string = "Hello"
const substring = "llo"
console.log(string.includes(substring))
Posted by: Guest on March-17-2021
1

javascript string contains

var string = "foo",
var substring = "oo";

console.log(string.includes(substring));
Posted by: Guest on May-24-2020

Code answers related to "javascript has string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language