Answer:
The classList.replace() method is used to replace a class in an element's class list with another class in JavaScript.
The classList.replace() method is used to replace a class in an element's class list with another class in JavaScript.
You may be interested in:
Web Fundamental MCQs