underscore-min.js
file UMD available. After that include the following CDN link inside your code in order to run the underscore.js code inside the browser.
Node.js
and npm installed.npm install underscore
yarn
yarn install underscore
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src=
"https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js">
</script>
</head>
<body>
<script type="text/javascript">
var numbers = [100, 50, 400, 66, 999];
console.log(_.max(numbers));
</script>
</body>
</html>
Output :