endOffset

Returns range's end offset.

MDN Reference