Please login to start chat

ICT Solutions 11 Jun 2022, 09:55:54
Category : JavaScript Tutorials

fill (JavaScript Array Method)

const tnwNames = ["Aye Aye", "Nwe Nwe", "Hla Hla", "Mya Mya", "Soe Soe", "Moe Moe"];

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

function tnwFun2(){
const result = tnwNames.fill("Aung Aung", 1, 3);
document.getElementById("demo").innerHTML = result.join("
");
}

Comments:

No comment to show.

Available Services
Download Android Application