'i have stored database values in the variable called result it returns as [object Object] need to change to string format?
plz check out this code and help me to find the error the result i have returned in the table showing that only the object object.
function makeTable(result) {
var table = document.createElement('table');
for (var i = 0; i < result.length; i++) {
var row = document.createElement('tr');
for (var j = 0; j < result[i].length; j++)
{
var cell = document.createElement('td');
cell.textContent = array[i][j];
row.appendChild(cell);
}
table.appendChild(row);
}
return table;
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
