• + 0 comments

    function matchingStrings(stringList, queries) { // Write your code here

    let results = []
    
    for(let i = 0; i < queries.length; i++ ){
    
    let found = stringList.filter((e) => e === queries[i])
    
       results[i] = found.length; 
    
    
    
    }
    
    return results
    

    }