Accepted answer

svg.node() returns the svg value. But, I don't know why it draws something by putting the argument.


if you console.log(svg.node()),you can find a object contains total element nodes of svg in your console.

return svg.node() is usually used to show or update svg figure.

Related Query

More Query from same tag