Solution: Number of Days in a Month

Let's discuss the solution to the Number of Days in a Month challenge.

We'll cover the following

Solution

We can use multiple === equal operators inside a single if condition using the || operator.

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

Get hands-on with 1200+ tech skills courses.