• + 0 comments

    function getSecondLargest(nums) { // Complete the function let sortedNums = Array.from(new Set(nums)).sort((a, b) => (b-a));

    //sorted nums;
    return sortedNums[1];
    

    }