HEADER ADS 728X90

JavaScript Array Methods - Find & FindIndex Function | Javascript Tutorial: 31 | BY CodePrime

codeprime,codeprime js,javascript,javascript tutorial for beginners,javascript tutorial,javascript in bangla,find(),finindex(),javascript find,find,javascript array find,javascript array findindex,javascript find tutorial,javascript array methods tutorial,javascript array tutorial in bangla,javascript tutorial in hindi,javascript crash course,programming tutorial javascript,javascript basics,programming,development,js,array,website,websites,application,web,dev, coding tutorial, how to learn coding easy way to learn coding

Hi dear welcome to "CodePrime" Blog . In this post you are going to learn JavaScript Array Methods - Find & FindIndex Function | Javascript Tutorial: 31 . First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat style.css file Then Copy The CSS CODE and pest it then open the index.html file with your browser.

HTML CODE

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="find-and-findindex.js"></script>
    <title>javascript</title>
</head>
<body>
    <br><br>
    <h2>Javascript Tutorial <br>By Codeprime</h2>
   
   

</body>

<style>
    h2{
        color:#fff;
        background-color: #000;
        padding: 5px;
    }
</style>
</html>

JVASCRIPT CODE

document.write("<h2>Find-Findindex</h2> <br>");

var a = [10,17,12,2,30];
document.write(a + "<br><br>")
//var adultAge = 18;
var b = a.findIndex(checkAdults);
document.write(b + "<br><br>");

function checkAdults(age){
    return age >= 18;
}


Youtube Tutorial

FLOW US ON SOCIAL MEDIA

Post a Comment

0 Comments

Join Telegram