let arrInp = [],
btn = document.querySelector('button')
btn.addEventListener('click',function (){
let inp = document.createElement('input')
arrInp.push(inp)
inp.setAttribute('class','test')
document.body.appendChild(inp)
if (arrInp.length >=5) {
}
})