The most viewed posts

Registry Reviver

How to clean up Windows Computer

About Desktop Icons in Windows Computer

Driver Booster

CCleaner

some (JavaScript Array Method)

Myanmar font and keyboard for Windows

Advanced System Care

How to sell IT materials in zilastar.com

Web Development Services

The most viewed items

Desktop Hard Disk

Dell Inspiron 5559

HP ProBook 430

SONY Playstation Portable

Laptop RAM

External Hard Disk

Laptop

ZilaStar ICT Jan 12 2021, 15:46:40

lastIndexOf (JavaScript Array Method)

const tnwText = "Hello, welcome to TNW (Web Service & ICT Solutions)";

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

function tnwFun2(){
let tnwSearch = document.getElementById("search").value;
let result = tnwText.lastIndexOf(tnwSearch);
document.getElementById("demo").innerHTML = "The search text is found at : " + result;
}


ZilaStar ICT Jan 07 2021, 15:46:04

keys (JavaScript Array Method)

const tnwNames = ["Hla Hla", "Mya Mya", "Soe Soe", "Moe Moe"];
let result = "";

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

function tnwFun2(){
let tnwKeys = tnwNames.keys();
for(let x of tnwKeys){
result += x + "
";
document.getElementById("demo").innerHTML = result;
}
}


ZilaStar ICT Dec 19 2020, 15:44:56

join (JavaScript Array Method)

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

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

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


ZilaStar ICT Nov 02 2020, 15:44:18

isArray (JavaScript Array Method)

const tnwText = ["Hla Hla", "Mya Mya", "Soe Soe", "Noe Noe"];
//const tnwText = "I am Thet Naing Win.";
const result = Array.isArray(tnwText);
document.write(result);


ZilaStar ICT Oct 12 2020, 15:43:33

indexOf (JavaScript Array Method)

const tnwText = "Hello Dear All, I am Thet Naing Win. Welcome to TNW (Web Service & ICT Solutions)";

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

function tnwFun2(){
const tnwSearch = document.getElementById("search").value;
const result = tnwText.indexOf(tnwSearch);
document.getElementById("demo").innerHTML = "The search text is fount at " + result;
}


ZilaStar ICT Sep 22 2020, 15:42:46

includes (JavaScript Array Method)

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

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

function tnwFun2(){
document.getElementById("demo").innerHTML = tnwNames.includes("Mya Mya");
}


ZilaStar ICT Sep 05 2020, 09:58:52

from (JavaScript Array Method)

const myLetter = "ABCDEFGHIJKL";

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

function tnwFun2(){
const result = Array.from(myLetter);
document.getElementById("demo").innerHTML = result;
}


ZilaStar ICT Aug 26 2020, 09:58:18

forEach (JavaScript Array Method)

const student = ["Aung Aung", "Maung", "Kyaw", "Zaw", "Soe", "Moe"];
let names = "";
function tnwFun1(){
student.forEach(tnwFun2);
}

function tnwFun2(item, index){
names += index + " : " + item + "
";
document.getElementById("demo").innerHTML = names;
}


ZilaStar ICT Aug 11 2020, 09:57:48

findIndex (JavaScript Array Method)

const tnwAges = [19, 39, 28, 43, 29, 45, 53];

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

function tnwFun2(){
document.getElementById("demo").innerHTML = tnwAges.findIndex(chkAge);
}
function chkAge(age){
return age > document.getElementById("myAge").value;
}


ZilaStar ICT Jul 27 2020, 09:57:10

find (JavaScript Array Method)

const tnwAges = [19, 39, 28, 43, 29, 45, 53];

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

function tnwFun2(){
document.getElementById("demo").innerHTML = tnwAges.find(chkAge);
}

function chkAge(age){
return age > document.getElementById("myAge").value;
}


ZilaStar ICT Jul 11 2020, 09:56:23

filter (JavaScript Array Method)

const tnwAges = [25, 18, 29, 20, 40, 32, 53, 24];

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

function tnwFun2(){
const result = tnwAges.filter(chkAge);
document.getElementById("demo").innerHTML = result.join("
");
}

function chkAge(age){
return age > 20;
}


ZilaStar ICT Jun 22 2020, 09:55:54

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("
");
}


Page : 9 of 30
To Contact
Available Services
Terms and Conditions