Here is the Solution of how to print array element in HTML table. HTML Code: <p id=”demo”></p> JavaScript Code: var fruits, text, fLen, i; fruits = [“Banana”, “Orange”, “Apple”, “Mango”]; fLen = fruits.length; text = “<table border=’1′><tr><th>Index</th><th>Data</th></tr>”; for (i =