The SVGGeometryElement.pathLength property reflects the pathLength attribute and returns the total length of the path, in user units.
SVGGeometryElement.pathLength
pathLength
A number.