Last week I decided to give sweet.js a try. Here are a couple of interesting examples that I cooked up, together with some explanations of how they work. Coffeescript’s do syntax, with a twist Coffeescript’s do syntax allows us to set the parameter values for an IIFE1 at the top of the function, rather than at the bottom.
Tweet
SaveShareSend
Tags: frameworks, javascript
Add your comment