π₯ If the Fetch API seems a little cumbersome and you donβt want to reach for Axios, you can always make a handy little function that applies your defaults (assumes JSON) and can be overwritten if needed
π₯ If you are trying to add/remove multiple classes from an element, an array spread is the perfect use case here since classList.remove() requires multiple arguments.
Instead of it passing in 1 array arg, it passes each item of the array as a separate argument
Next βπ₯ use your webcam to keep an eye on kiddos in your office