JavaScript Array Question 6

Description

JavaScript Array Question 6

let people = [/*from w  w w  .j  av a 2s.com*/
  ["CSS", 25, true],
  ["HTML", 34, false],
  ["Javascript", 51, true]
];


console.log("Name: " + people[0][0] + ", Age: " + people[0][1]);
console.log("Name: " + people[1][0] + ", Age: " + people[1][1]);
console.log("Name: " + people[2][0] + ", Age: " + people[2][1]);


Name: CSS, Age: 25
Name: HTML, Age: 34
Name: Javascript, Age: 51



PreviousNext

Related