Javascript - Write program to Use the length property to display the number of array items.

Requirements

Use the length property to display the number of array items in nameList.

Here is the array

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

Hint

Syntax hint

array.length

Demo

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

Result