✅✅✅Straightforward Javascript Solution || Faster than 96.67%
\nvar countPrefixes = function(words, s) {\n    let count = 0;\n    for (let word of words) {\n        if (s.startsWith(word)) count++\n    } return count;\n};\
```\nvar countPrefixes = function(words, s) {\n    let count = 0;\n    for (let word of words) {\n        if (s.startsWith(word)) count++\n    } return count;\n};\n```\n![image](https://assets.leetcode.com/users/images/9ebdaad0-0ac6-40e8-98da-26c37a70fab5_1653758537.70002.png)\n
['JavaScript']