How come nextSlide ('.active-slide'.next()) can use .Length? It gives an integer, where does it come from? From number of children?


please help, I just want to learn more about coding the web, thanks


Hi Jhepong,

The jQuery next() function returns an object containing the next sibling of the current HTML element. If there is no next sibling, the object will be empty, and so it's length will be zero :slightly_smiling: