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 23 / 42

Lesson task •

Water plants which names consist of at least 4 letters

N or more times

{n,}

Repeats the previous token N times or more

Now we can define ourselves some of the previous predefined qunatifiers:

  • * equals to {0,}
  • + equals to {1,}