The most viewed items
const tnwNums = [20, 39, 48, 58, 68, 70, 85, 90];
function tnwFun1(){
document.getElementById("demo").innerHTML = tnwNums.join(", ");
}
function tnwFun2(){
let result = tnwNums.some(tnwFun3);
document.getElementById("demo").innerHTML = tnwNums.join(", ");
document.getElementById("demo1").innerHTML = result;
}
function tnwFun3(num){
let chkInput = document.getElementById("chknum").value;
return num > chkInput;
}
No comment to show.