a = 5
do (a) ->
console.log a
Why does this compile to
a = 5;
(function(a){
return console.log(a);
})();
a
is not passed in so it is undefined. Am I doing self executing closure wrong?
a = 5
do (a) ->
console.log a
Why does this compile to
a = 5;
(function(a){
return console.log(a);
})();
a
is not passed in so it is undefined. Am I doing self executing closure wrong?
In LiveScript,
do
just invokes a function. You're looking forlet
: