There are seven basic SVG shape elements:
path. In point of fact, all of the shape elements are variations of the underlying
path element, which acts as an API for drawing every vector shape in SVG.
As I’ve previously discussed, arrays are variables with infinite “slots” for data. These slots can be filled from all kinds of sources: selections of DOM elements, random numbers, text, etc. It’s very common to loop over this data to perform some operation, but it’s also common to extract or insert more data, or to trim the array. That’s what
unshift are for.