Amandeep Pasricha14,928 Points
Why did we write .length?
Could someone explain this conceptually? What is the object that we are applying the length property to?
Christopher Gardner12,347 Points
Hi Amandeep, it looks like it's running through the pdfs in the list, and using jQuery's :checked selector, you're searching to see if any of the boxes are checked. So it's saying if the length of the number of boxes checked is 0, then prevent downloads from happening. If the checkbox is selected, the length will return 1, allowing for the pdfs to be downloaded.
Hope this helps!