The valueAsString property of the SVGLength interface represents the 's value as a string, in the units expressed by unitType.
valueAsString
MDN Reference