Horje
javascript word start with Code Example
javascript word start with
const str = "Saturday night plans";
const res = str.startsWith("Sat");
console.log(res); //> true
javascript string starts with
//checks if a string starts with a word
function startsWith(str, word) {
    return str.lastIndexOf(word, 0) === 0;
}
startsWith("Welcome to earth.","Welcome"); //true




Javascript

Related
nested array loop in javascript Code Example nested array loop in javascript Code Example
mysql json change key Code Example mysql json change key Code Example
javascript find smallest number in an array Code Example javascript find smallest number in an array Code Example
set checkbox checked jquery Code Example set checkbox checked jquery Code Example
how to find smallest number in array js Code Example how to find smallest number in array js Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8