A Javascript Component Pattern
A walk through the typical JavaScript pattern that we use at my work.
Javascript Fallback Values on Variables and Booleans - a hard lesson
A lesson I learned using fallback values on a JavaScript variable, but ran into trouble when it dealt with a boolean.
Keep reading Javascript Fallback Values on Variables and Booleans - a hard lesson
JavaScript events: .target vs .currentTarget
This seemingly comes up for me every six months or so, and I struggle to remember the whys of this. I just thought I’d share this little pointer as a reminder to myself, and hopefully it helps others. Let’s say you have a clickable element, like a button, and you have some kind of inner element:…