I am facing an issue where the array is displaying as undefined even though I am storing table data in an array. Check out more about arrays here.
Attempting to retrieve each problem's row in the form of an array
function getAllProblemRowElements() {
//var k = document.querySelector("#app > div > div > div > div.table-responsive > table > tbody");
const tableContents = document.querySelector("#app > div > div > div > div.table-responsive > table > tbody");
const sources = Array.from(tableContents,source=>tableContents[0]);
return sources;
}
Please help me resolve this issue