68. get DOM tags

JavaScriptAlgorithmDOM
Is this helpful ?

from all members: - accepted / - tried

Given a DOM tree, please return all the tag names it has.

Your function should return a unique array of tags names in lowercase, order doesn't matter.

Let's try to solve this problem within 10 mintues.

Discuss(29)