Solution: Counting Elements

Let's see the solution to the counting elements challenge.

We'll cover the following

Solution

Here, we use querySelectorAll() method to access all elements.

Let’s have a look at the solution code below:

Get hands-on with 1400+ tech skills courses.