A pot
Rue
A pot
Rose
A pot
Rosemary
A pot
Rye
A pot
Rice
A pot
Primrose
1234
let garden = [
	"Rue", "Rose", "Rosemary", 
	"Rye", "Rice", "Primrose"
];
123456
for  (const plant of garden) {
if (plant.match(//i) {
water(plant);
}
}
Lesson 24 / 42

Lesson task •

Water plants which names consist of 3 or 4 letters

From N to M times

{n,m}

Repeats the previous token between N and M times

Now we can rewrite * as {0,1}: