Remember: rows start at index zero!

We’ve already given you two row definitions, cat-row and dog-row:

cat-row = row-n(animals-table,  0)  # Sasha is a cat
dog-row = row-n(animals-table, 10)  # Toggle is a dog

1 Use the Animals Table to identify the index of a row containing…​

a lizard

a rabbit

a fixed animal

a male animal

a female animal

a hermaphroditic animal

an unfixed animal

a young animal (<2 years)

an old animal (>10 years)

2 What code would you write to define lizard-row?

3 What code would you write to define rabbit-row?

4 What code would you write to define fixed-row?

5 What code would you write to define male-row?

6 What code would you write to define female-row?

7 What code would you write to define hermaphrodite-row?

8 What code would you write to define young-row?

9 What code would you write to define old-row?

Add this code to your Animals Starter File! You’ll want these rows for later!

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927). CCbadge Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.