JSFiddle - React, Tailwind, and code Playground
HTML
<input id="one0" type="text">
<input id="one1" type="text">
<input id="one2" type="text">
<input id="one3" type="text">
<input type="button" id="verifyBtn" value="verify" onclick="go()">
JavaScript
var arr=[];
var t;
var num=2;
var x=[];
for(var x=0;x<4;x++){
document.getElementById("one"+x);
}
function go(){
for(var t=0;t<4;k++){
x[t]=num*(t+1);
}
for(var k=0;k<4;k++){
if(document.getElementById("one0").value>=x[k])
if(document.getElementById("one"+k).value==x[k])
alert(document.getElementById("one"+k).value);
else
alert("Sorry");
}
}