javascript method to find a word starting with a $ in a string code example
Example: javascript word start with
const str = "Saturday night plans";
const res = str.startsWith("Sat");
console.log(res); //> true
const str = "Saturday night plans";
const res = str.startsWith("Sat");
console.log(res); //> true