HEADER ADS 728X90

JavaScript Array Methods - toString(), valuOf(), fill() - Function | Javascript Tutorial:33 | BY CP

codeprime,codeprime js,javascript,javascript tutorial for beginners,javascript in bangla,javascript array methods tutorial,array,js,function,javascript tostring,web development,webdevsimplified,javascript valueOf,javascript fill,fill,tostring,valueOf,javascript array tostring,javascript array valueof,javascript array fill method,javascript tostring tutorial,javascript valueof tutorial,javascript array tutorial in hindi,learn javascript in hindi,web design tutorial, 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 - toString(), valuOf(), fill() - Function | Javascript Tutorial:33 | BY CP. First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat tostring-valueof-fill.js file Then Copy The JS CODE and pest it then open the index.html file with your browser.

HTML

<!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="/tostring-valuof-fill.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



var a = ["Hanif", "Rubia", "Hassan", "Abbas"];

//tostring methods
a.toString();
document.write(a + "<br><br>");

//valueOf methods
document.write(a.valueOf() + "<br><br>");

//tostring methods
a.fill("Hanif");
document.write(a + "<br><br>");

Youtube Tutorial

FLOW US ON SOCIAL MEDIA

Post a Comment

0 Comments

Join Telegram