• + 0 comments

    **Simple and Short Solution **

    function getSecondLargest(nums) {
    nums.sort((a,b) => a-b )
    const c = [...new Set(nums)]
    return c.at(-2)
    }