Javascript solution | faster than 100%
\n\n/**\n * @param {string[]} nums\n * @param {string} target\n * @return {number}\n */\nvar numOfPairs = function(nums, target) {\n    var count = 0;\n    var 
![image](https://assets.leetcode.com/users/images/49b311f1-e02d-40fb-9d3c-20bc48bf7009_1641200268.787811.jpeg)\n```\n/**\n * @param {string[]} nums\n * @param {string} target\n * @return {number}\n */\nvar numOfPairs = function(nums, target) {\n    var count = 0;\n    var x = 0;\n    while (x < nums.length) {\n        for (let y = 0; y<nums.length; y++) {\n            if (nums[x] + nums[y] == target) {\n                count += 1;\n                if (x == y) {\n                    count -= 1;\n                }\n            }\n        }\n        x++;\n    }\n    return count;\n};\n```
['JavaScript']