JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

function hide(id) {
	var text = '';
    for (var i in arguments) {
        text += arguments[i];
    }
    document.getElementById('res').innerText = text;
}

hide('1', '2', '3', '4');