$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #188

What goes in the blank?

// toggle a css class safely
el.____.toggle('active');

Answer: classList (also accepted: classList, classList())

classList gives add/remove/toggle without touching the whole class string.
Play Problem Solving ▸