<html>
<body>
<h1>Array entries()</h1>
<p>Create an Iteration Object from the fruit array.</p>
<p>Each entry will have a key/value pair based on the array values:</p>
<p id="demo"></p>
<p><strong>Note:</strong> The entries method is not supported in IE 11 (and earlier versions).</p>
<script>
var fruits = ["Banana", "Orange", "Apple", "Mango"];
var f = fruits.entries();
for (x of f) {
document.getElementById("demo").innerHTML += x + "<br>";
}
</script>
</body>
</html>