Please login to start chat

ICT Solutions 11 Jun 2022, 09:57:10
Category : JavaScript Tutorials

find (JavaScript Array Method)

const tnwAges = [19, 39, 28, 43, 29, 45, 53];

function tnwFun1(){
document.getElementById("demo").innerHTML = tnwAges.join("
");
}

function tnwFun2(){
document.getElementById("demo").innerHTML = tnwAges.find(chkAge);
}

function chkAge(age){
return age > document.getElementById("myAge").value;
}

Comments:

No comment to show.

Available Services
Download Android Application