Notes to self: for my current recurring mistakes
Check to see if your new code is running
Just finish writing a block of code? Isn’t doing what you were hoping? Console log inside the block and outside of it.
Are you treating the JQuery like JQuery?
Take note of your questions as you go.
If you think to yourself, I’m not sure if that’s how this code works. Add a comment so that when it inevitably doesn’t work, you’ll have a good starting point for why it might not be working. Or Google how it works first. Probably Google it first.
Using a bang !
The bang flips the truthy/falsey-ness of what comes after it. So if(!1), with 1 being a truthy value, becomes “if 1 is falsey.”