JS || Solution by Bharadwaj
Code\n\nvar triangleType = function (nums) {\n    nums.sort((a, b) => a - b);\n    if (nums[0] + nums[1] > nums[2]) {\n        if (nums[0] === nums[1] && nums[1
# Code\n```\nvar triangleType = function (nums) {\n    nums.sort((a, b) => a - b);\n    if (nums[0] + nums[1] > nums[2]) {\n        if (nums[0] === nums[1] && nums[1] === nums[2]) {\n            return "equilateral";\n        }\n        else if (nums[0] === nums[1] || nums[1] === nums[2]) {\n            return "isosceles";\n        }\n        else {\n            return "scalene";\n        }\n    } else {\n        return "none";\n    }\n};\n```
['JavaScript']