Series

Code Fix

In this series, I review code from people in my Discord groups and answer the question, "Why doesn't my code work?"

Articles in this series

Code Fix #3: Toggling Classes with querySelectorAll

Aug 14, 20212 min read 18 views

Welcome back! In this article, I'll be going over toggling classes with querySelectorAll. Background The person was given the HTML and CSS below: <!-- index.html --> <ul> <li>Hello</li> <li class="highlight">Hello</li> <li>Hello</li> <li clas...

Code Fix #3: Toggling Classes with querySelectorAll
Code Fix #2: Getting the Last Element in an Array
Code Fix #1: JavaScript, HTML Elements, and Variable Assignments