I have an issue the array is showing undefined even if i am storing the table data into an array https://leetcode.com/tag/array/
Getting every 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 resolve it