Why is this giving me an error?

for(let i=0;jobCard.length;i++){
if(jobCard[i].classList.contains('hidden')) {
jobCard[i].classList.remove('hidden');
}
}
for(let i=0;jobCard.length;i++){
if(jobCard[i].classList.contains('hidden')) {
jobCard[i].classList.remove('hidden');
}
}
Error: "Uncaught TypeError: Cannot read properties of undefined (reading 'classList') at HTMLButtonElement.<anonymous> (index.js:183:27)" I'm out of brain juice, please help.
4 Replies
Unknown User
Unknown Userā€¢2y ago
Message Not Public
Sign In & Join Server To View
Dovah
DovahOPā€¢2y ago
xD Uh programing what a beauty of a proffession reading check Thansk a lot! šŸ˜„
Unknown User
Unknown Userā€¢2y ago
Message Not Public
Sign In & Join Server To View
Dovah
DovahOPā€¢2y ago
I have never been so mad at my own stupidity until I tried learning programming Pog
Want results from more Discord servers?
Add your server