Please login to start chat

ICT Solutions 2022-05-20 22:30:21
Category : JavaScript Tutorials

JavaScript Array

/*
const countries = ["USA", "UK", "Canada"];
document.write(countries);

//example one
const names = ["Hla Hla", "Mya Mya", "Soe Soe"];
document.write(names);


//example two
const cities = [
"Yangon",
"Mandalay",
"Meikhtila"
];
document.write(cities);

//example three
const countries = [];
countries[0] = "USA";
countries[1] = "UK";
countries[2] = "Canada";
document.write(countries);

//example four
//creating array by using new keyword
const countries = new Array("USA", "UK", "Canada");
document.write(countries); */

//Arrays are special types of objects

const myNmae = {first: "Thet", middle: "Naing", last: "Win"};
document.write(myNmae.last);

To see video in YouTube.

Comments:

No comment to show.

Available Services
Download Android Application