Please login to start chat

ICT Solutions 12 Jun 2022, 15:48:32
Category : JavaScript Tutorials

push (JavaScript Array Method)

const tnwNames = ["Soe Soe", "Moe Moe"];

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

function tnwFun2(){
let tnwAdd = document.getElementById("adding").value;
let result = tnwNames.push(tnwAdd);
document.getElementById("demo").innerHTML = result;
}

Comments:

No comment to show.

Available Services
Download Android Application