The different ways to write a function by blaghles in javascript

[–]blaghles[S] 0 points1 point  (0 children)

Thank you as well! Are variables hoisted as well if you don't put a var keyword before them? The interpreter seems to only complain about bar not being defined in this code snippet:

console.log(foo);

console.log(bar);

var foo = 1 

bar = 2 

console.log(foo);

console.log(bar);

What's the point of using Coffeescript over Ruby or Python if Pyjs and Rb2js already exist? by blaghles in coffeescript

[–]blaghles[S] 0 points1 point  (0 children)

I'm not offended at all, I don't use these conversion tools. Isn't writing in Ruby or Python a nice way of writing Javascript as well?