Javascript - Write program to Display one item from the nameList array.

Requirements

Write program to Display one item from the nameList array.

Display the "XML" item of the nameList array.

Here is the array

var nameList = ["Java", "XML", "Json"];

Hint

Refer to the index number (array indexes start with 0).

Demo

var nameList = ["Java", "XML", "Json"];
console.log( nameList );
console.log( nameList[1] );

Result