menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Daily Java...
source image

Dev

5d

read

393

img
dot

Image Credit: Dev

Daily JavaScript Challenge #JS-152: Find the Second Largest Number in an Array

  • Given an array of numbers, write a function to find the second largest number in the array.
  • If the array contains less than two unique numbers, return null.
  • Check out the documentation about this topic here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity
  • This is part of our Daily JavaScript Challenge series. Follow me for daily programming challenges and let's grow together! 🚀

Read Full Article

like

23 Likes

For uninterrupted reading, download the app