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?

Or are you treating it like a combo of JQuery and JavaScript?

Take note of your questions as you go.

If you think to yourself, . 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.”

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store