The SVG Element.classList property returns the classList of the given element.
Syntax:
var attr = element.classList
Return value: This property returns classList of the element.
Example 1:
Output:
Example 2: