JSFiddle - React, Tailwind, and code Playground
by ncubica
HTML
<div id="result">
</div>
JavaScript
/*
Obten el valor más alto y más bajo del siguiente arreglo
hint : Investigar siempre es una opción
*/
var arr = [10,100,3,2,233,2111,213333,22,1111,22211];
$("#result").html("Max : "+Math.max.apply(null, arr) +"<br />Min : " +Math.min.apply(null, arr));