A pot
HeliopsisHelianthoides
A pot
Rosemary
A pot
EchinaceaSunrise
A pot
Primrose
A pot
ChristmasRose
A pot
Rose
123456
let garden = [
	"Heliopsis helianthoides", 
	"Rosemary", 
	"Echinacea 'Sunrise'", 
	"Primrose", "Christmas Rose", "Rose"
];
123456
for  (const plant of garden) {
if (plant.match(//i) {
cut(plant);
}
}
Lesson 9 / 42

Lesson task •

Cut all the plants that has spaces in their names

Any single whitespace character

\s

Matches single space, \t, \n, \r, \f
123
console.log(!!"4 2".match(/\w\s\w/)) // true 
console.log(!!"4_2".match(/\w\s\w/)) // false 
console.log(!!"42".match(/\s/)) // false