I wanted to toggle the highlighted
class of a td
element with ...classlist.toggle("highlighted")
. Now I have the highlighted class in the first line, but not in the detailed description of the console output of the classlist (like in the picture). and i have no idea why.
(Just for information: I used the exact same line of code earlier and it worked without problems. Also this is my first bigger project and I don't have much experience.)
The console output of classlist which I don't understand: