joyacv2
asked on
coffee script generated code not working
Hi,
My html code:
my coffee script code
the code generated by coffee script compiler
don't work, any idea?
My html code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test</title>
<script src="main.js"></script>
</head>
<body>
</body>
</html>
my coffee script code
myfunction = ->
alert('test')
myfunction()
the code generated by coffee script compiler
(function() {
var myfunction;
myfunction = function() {
alert('test');
return myfunction();
};
}).call(this);
don't work, any idea?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are most welcome.
ASKER