JSFiddle - React, Tailwind, and code Playground

by podgorniy

HTML

<div id="res"></div>

JavaScript

var arr = [10,20,30,3,2,100];

function get_max (arr) {
    return Math.max.apply(Math, arr);
}

// output
var res = document.getElementById('res');
res.innerHTML = get_max(arr);