JavaScript "startsWith" method
\nvar prefixCount = function(words, pref) {\n    let count = 0;\n    for(let word of words) {\n        if(word.startsWith(pref)) count++;\n    }\n    return cou
```\nvar prefixCount = function(words, pref) {\n    let count = 0;\n    for(let word of words) {\n        if(word.startsWith(pref)) count++;\n    }\n    return count;\n};\n```
['JavaScript']