xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>Create Two Dimensional Array in JavaScript</title>
</head>
<body>
<script>
// Creating an empty array
var arr = [];
// Populating array with values
arr[0] = ["a", "Apple"];
arr[1] = ["b", "Banana"];
arr[2]= ["c", "Cat"];
document.write(JSON.stringify(arr));
</script>
</body>
</html>