Posts by Ighour • 1 point
1 post
-
0
votes4
answers2906
viewsA: How to get the highest value in an array with Javascript?
There are some logic errors in their function (I used comments in their own code to highlight them): function encontraMaior(array) { var maior; if(array.length < 1) { throw new Error('Empty…
javascriptanswered Ighour 1