JavaScript Index Solution
\nvar numMatchingSubseq = function(s, words) {\n    let subsequence = false;\n    let count = 0;\n    let prevIdx, idx \n    for(const word of words) {\n       
```\nvar numMatchingSubseq = function(s, words) {\n    let subsequence = false;\n    let count = 0;\n    let prevIdx, idx \n    for(const word of words) {\n        prevIdx = -1;\n        idx = -1;\n        subsequence = true;\n        for(let i = 0; i < word.length; i++) {\n            idx = s.indexOf(word[i], idx + 1);\n            if(idx > prevIdx) {\n                prevIdx = idx;\n            } else {\n                subsequence = false;\n                break;\n            }\n        }\n        if(subsequence) count++;\n    }\n    return count;\n};\n```
['JavaScript']