JS Solution | Beats 100%
Code
# Code
```javascript []
function triangleType(nums) {
    const s1 = nums[0] + nums[1];
    const s2 = nums[0] + nums[2];
    const s3 = nums[1] + nums[2];
    return isTriangle(nums[0], nums[1], nums[2]) ? getTriangleType(s1, s2, s3) : 'none';
};

function getTriangleType(s1, s2, s3) {
    if (s1 === s2 && s2 === s3)
        return 'equilateral';
    else if (s1 !== s2 && s2 !== s3 && s1 !== s3)
        return 'scalene';
    return 'isosceles';
}

function isTriangle(n1, n2, n3) {
    return n1 + n2 > n3 && n1 + n3 > n2 && n2 + n3 > n1;
}
```
['JavaScript']