Affects only the first element with the specified class
.slide
document.querySelector('.slide').remove()
Removes all the elements with the specified class
document.querySelectorAll('.slide').remove()
by Valeri Tandilashvili
3 years ago
JavaScript
The 10 Days of JavaScript
0
Pro tip: use ```triple backticks around text``` to write in code fences