how to know CSS-class of current node, JS : I wanted to do little menu for navigation in nodes.I have a model of site where i training in js. And my problem, how to display class of node in results block. I looked that i can display only a node name or a node type, but it's very uncomfortable and i just think if classes is all named that it's will be more convenient way for display.Please give a recommendation for my code.In the end, I want to add that I am only learning English, and because of this, there may be some errors. Thank you.[It's my HTML code][1] and [my Js code][2](some functions not yet done).


  [1]: https://i.stack.imgur.com/5g4ye.png
  [2]: https://i.stack.imgur.com/r5p00.png