numberValue

The read-only numberValue property of the The return value is the numeric value of the XPathResult returned by In case XPathResult.resultType is not NUMBER_TYPE, a The following example shows the use of the numberValue property.

MDN Reference