Cases where JavaScript generators rock (+ understanding them)

One of the new features in ES6 is a new type of function, a generator function. You’ve probable heard of them. They are defined almost like normal functions, but instead of function, you use functi… Read more

Similar

Dark mode images without JavaScript

The <picture> element supports media query matchers and if you want to specify a different image for dark mode, you can use a different <source>. So, if there are no suitable matches or if the browser doesn’t support the <picture> elemen... (more…)

Read more »