D3 Selections

d3.select(foo) - select the first match
d3.selectAll(bar) - select all matches
  typically foo and bar are CSS selectors

D3 selections are simply arrays of elements.
They also provide basic operators:
 append, attr, style, property