simple and easy code in JS
\n\nyou can check out my github repository where i am uploading famous interview questions topic wise with solutions.\u2028\nlink-- https://github.com/AnkitaGoy
\n```\nyou can check out my github repository where i am uploading famous interview questions topic wise with solutions.\u2028\nlink-- https://github.com/AnkitaGoyalD2004?tab=repositories\n```\n\n# Code\n```\n/**\n * @param {string[]} nums\n * @param {string} target\n * @return {number}\n */\nvar numOfPairs = function(nums, target) {\n    let result = 0;\n  for (let i = 0; i < nums.length; i++) {\n    for (let j = 0; j < nums.length; j++) {\n      if (\n        (nums[i] + nums[j] == target && i != j) \n      ) {\n        result++;\n      }\n    }\n  }\n  return result;\n};\n```
['JavaScript']