Today i tried coffee script (what a funny name xD),but it doesn't work properly. My script is:
add=(a,b)-> a + b
add 2,2
and it returned this:
(function() {
var add;
add = function(a, b) {
return a + b;
};
add(2, 2);
}).call(this);
This structure of function isn't built properly in my opinion.It begin with a function,and in a function insert another one?And the variable declared in the function are superflue,they work only in the function.And this line:
.call(this)
what mean? Someone can help me to fix this issue of coffee script please?