JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
</head>
<body>
<div id="mydiv">
</div>
</body>
</html>
JavaScript
Object.prototype.example = function(args) {
var elmnt = this;
for(var a in args)
{
elmnt.innerHTML += args[a] + "<br/>";
}
}
var numbers = ['one', 'two', 'three'];
document.getElementById("mydiv").example(numbers);