You are viewing a single comment's thread. Return to all comments →
In JS
function getSecondLargest(nums) { // Complete the function let dupl = [...new Set(nums)]; let arr = dupl.sort((a,b)=> a-b); let res = arr[arr.length-2] return res; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 3: Arrays
You are viewing a single comment's thread. Return to all comments →
In JS