Reffering to: http://livescript.net Unnested callbacks and parentheses free chaining: LiveScript
<-! $ 'h1' .on 'click'
alert 'boom!'
JavaScript
$('h1').on('click', function(){
alert('boom!');
});
How can I write livescript like this in Javascript?
JavaScript
$('h1').on('click', function(){
alert('boom!');
});
alert('out of callback');