HEADER ADS 728X90

JavaScript Array Methods Shift & Unshift Function Tutorial | Javascript Tutorial: 24 | BY CodePrime

codeprime,javascript tutorial for beginners,javascript tutorial,web design tutorial,javascript tutorial in bangla,javascript array method in hindi,javascript tutorial in hindi,codeprime js,javascript,shift(),unshift(),javascript array shift tutorial,javascript array unshift tutorial,javascript array methods tutorial in hindi,javascript array tutorial in hindi,javascript course,programming tutorial javascript,javascript webdevelopment,programming tutorial,js start, 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 Shift & Unshift Function . First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat shift-and-unshift.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="/shift-and-unshift.js"></script>
    <title>javascript</title>
</head>
<body >
    <h2>Javascript Tutorial <br>By Codeprime</h2>

   

</body>
</html>

JAVASCRIPT CODE


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

document.write(a + "<br><br>")

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

//Array unshift methods
a.unshift("Codeprime");
document.write(a)

Youtube Tutorial

FLOW US ON SOCIAL MEDIA

Post a Comment

0 Comments

Join Telegram