Closures in JavaScript tend to seem more difficult than it actually is. The essence is basically the following: (more…)
Read more »
I have always been fascinated by the idea of being able to measure code quality. Recently, I had a chance to dig in and understand how a code coverage tool works under the hood. It was a fun exercise… (more…)
Read more »
In this video, we will create 3 different ways to get unique values from an array. 🚀 The aim of this series is to show you different ways to solve the same p... (more…)
Read more »
How to write a small extensible code editor in pure javascript, with syntax highlighting and a few other nice features in 1KB. Absolutely no dependencies, a bit of contenteditable magic, with a strong focus on keeping it small and simple. (more…)
Read more »
In many cases, the node that you're interested in is not the direct child of the top XML element. Instead, it may be nested several levels down. You can access nodes at any depth using the.. operator, or by using the descendants property. For instance... (more…)
Read more »