Simple Solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\n/**\n * @param {string[]} nums\n * @param {string} target\n * @return {number}\n */\nvar numOfPairs = function(nums, target) {\n\n    let result = 0\n    \n    for (let i = 0; i < nums.length; i++) {\n\n        for (let k = 0; k < nums.length; k++) {\n\n            if (nums[i] + nums[k] === target && target && i !== k) {\n\n                result++;\n            }\n        }\n    }\n    return result;\n    \n};\n```
['JavaScript']