I come to this question:
f = (param) ->
console.info '#{param}'
f(1)
The outcome is #{param}
When I enclose the string with double quotation marks, this just print 1. I have also tested it in Ruby, its behaviour is the same. But that just contradicts the rule in CoffeeScript.org:
The golden rule of CoffeeScript is: "It's just JavaScript".
Because I think in Javascript, single quotes and double quotes are treated equally. And I do not use Ruby often. Can anyone explain why?
Thanks a lot.