/* Challenge: USING break and continue * Add a class of "watered" to one or more of the divs in the html * Add a class of "weeds" to one of the divs in the html * Create an array to contain each div with a class of "plot" * Loop through the array: If the plot has already been watered skip over it If the plot contains weeds then exit the loop If neither of these conditions is true add a class of "water" to the plot */
1
2
3
4
5
6
7
8
9
10
11
12
/* Challenge: USING break and continue
* Add a class of "watered" to one or more of the divs in the html
* Add a class of "weeds" to one of the divs in the html
* Create an array to contain each div with a class of "plot"
* Loop through the array:
If the plot has already been watered skip over it
If the plot contains weeds then exit the loop
If neither of these conditions is true add a class of "water" to the plot