Hi trying to understand and fix the console error I'm getting when running the following code full code here
for(var i = 0 ; i <= paragraphs.length ; i++){
if( i === 0 ){
continue
}
paragraphs[i].classList.add('hide')
}
The error reads
Cannot read property 'classList' of undefined
I found this explanation on reddit but I was not sure how it had been fixed?
Many thanks in advance
1.