Javascript - Write program to Create an array named nameList, assign the values "Java", "XML" and "Json" to it.

Requirements

Create an array named nameList, assign the values "Java", "XML" and "Json" to it, and display it.

Hint

Syntax hint

var arrayname = [item1, item2, ...];

Demo

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

Result