HEADER ADS 728X90

JavaScript Array Methods - Some & Every Function Tutorial | Javascript Tutorial: 30 | BY CodePrime

codeprime,codeprime js,javascript,javascript tutorial for beginners,javascript tutorial,javascript in bangla,some(),every(),JavaScript Array Methods - Some & Every Function Tutorial,array methods in javascript,javascript some function,javascript every function,javascript array some tutorial,javascript array every tutorial,javascript array method tutorial,javascript array tutorial in bangla,javascript crash course,web design tutorial,programming tutorial javascript, 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 - Some & Every Function Tutorial | Javascript Tutorial: 30 | . First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat some-every.js file Then Copy The JS 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="/some-every.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>

JAVASCRIPT CODE


document.write("<h2>Some & Every -Example</h2>");

var ages = [10,1,19,5,3];
document.write(ages + "<br><br>");

var c = ages.every(checkAdults);
document.write(c + "<br><br>");

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

Youtube Tutorial

FLOW US ON SOCIAL MEDIA

Post a Comment

0 Comments

Join Telegram