JSFiddle - React, Tailwind, and code Playground

HTML

<input type='text' value='255' />
<input type='text' value='05' />
<input type='text' value='455' />
<input type='text' value='-25' />

JavaScript

var arr = $('input').map(function() {
    return this.value;
}).get();
alert(Math.max.apply(Math, arr));