Answers for "includes on a string javascript"

9

string contains in javascript

const string = "foo";
const substring = "oo";

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

.includes( string

var str = "Hello world, welcome to the universe.";
var n = str.includes("world");
Posted by: Guest on November-14-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language