Bagaimana menemukan karakter tertentu di JS
var word = "This is how you locate a word in a string";
var n = word.includes("word");
SFSA_Despair
var word = "This is how you locate a word in a string";
var n = word.includes("word");
"FooBar".includes("oo"); // true
"FooBar".includes("foo"); // false
"FooBar".includes("oo", 2); // false