Please login to start chat

ICT Solutions 12 Jun 2022, 15:47:59
Category : JavaScript Tutorials

pop (JavaScript Array Method)

const tnwName = ["Hla Hla", "Mya Mya", "Aung Aung", "Maung Maung"];

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

function tnwFun2(){
let result = tnwName.pop();
document.getElementById("demo").innerHTML = "The removed element is : " + result;
}

Comments:

No comment to show.

Available Services
Download Android Application