Get highest integer from an array


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var largest = Math.max.apply(Math, myArray);

Report this snippet


Comments


You need to login to view comments.