100% faster, yet easy JS solution
\n/**\n * @param {string[]} nums\n * @param {string} target\n * @return {number}\n */\nvar numOfPairs = function (nums, target) {\n  let len = nums.length\n  le
```\n/**\n * @param {string[]} nums\n * @param {string} target\n * @return {number}\n */\nvar numOfPairs = function (nums, target) {\n  let len = nums.length\n  let res = 0\n  for (let i = 0; i < len - 1; i++) {\n    for (let j = i + 1; j < len; j++) {\n      if (nums[i] + nums[j] === target) res++\n      if (nums[j] + nums[i] === target) res++\n    }\n  }\n  return res\n}\n```\n![image](https://assets.leetcode.com/users/images/5e8b0d00-45d4-4f60-bea6-3cf4fcd12ca1_1644006544.0827103.png)\n
['JavaScript']