The length property in jQuery

To find out the number of elements in a set, use the length property.

For example, we have the following HTML code:

html<p>text</p>
<p>text</p>
<div>text</div>
<p>text</p>
<p>text</p>
<div>text</div>

Let's find out the number of paragraphs and output it to the console:

javascriptlet num = $('p').length;
console.log(num);
Задание 1

Get the number of elements li.