Referenced from lesson Data Displays and Lookups
The table below represents four pets:
pets-table
name | sex | age | pounds |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1) Match each Lookup Question (left) to the code that will give the answer (right).
“How much does Maple weigh?” |
1 |
A |
|
|
“Which is the last row in the table? |
2 |
B |
|
|
“What is Fritz’s sex?” |
3 |
C |
|
|
“What’s the third animal’s name?” |
4 |
D |
|
|
“How much does Nori weigh?” |
5 |
E |
|
|
“How old is Maple?” |
6 |
F |
|
|
“What is Toggle’s sex?” |
7 |
G |
|
|
“What is the first row in the table?” |
8 |
H |
|
2) Fill in the blanks (left) with code that will produce the value (right).
a. |
pets-table.row-n(3)["name"] |
|
b. |
|
|
c. |
|
|
d. |
|
|
e. |
|
|
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). Bootstrap:Integrated Oklahoma by Jen Poole is licensed under a Creative Commons 4.0 Unported License. Based on a work at www.BootstrapWorld.org. Permissions beyond the scope of this license may be available by contacting schanzer@BootstrapWorld.org.