I want to make a table from an array. I want to have 3 rows and 3 columns. The rows heading name should be 1,2,3. And the columns should be the name of the arrays: "country", "Capital", "population".
Here is my html:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var country = ["Norway", "Sweden", "Denmark"];
var capital = ["Oslo", "Stockholm", "Copenhagen"];
var population = ["5,2", "9.8", "5,7"];
</body>
</html>