Easy JS code
\n\n# Code\n\nvar findMaxK = function(nums) {\n    result = -1\n\n    for (let i = 0; i < nums.length; i++) {\n        if (nums.indexOf(-nums[i], i+1) > 0) \n  
\n\n# Code\n```\nvar findMaxK = function(nums) {\n    result = -1\n\n    for (let i = 0; i < nums.length; i++) {\n        if (nums.indexOf(-nums[i], i+1) > 0) \n            if (Math.abs(nums[i]) > result) result = Math.abs(nums[i])            \n    }\n\n    return result\n};\n```
['JavaScript']