I want this code in javascript:
beforeNode = children[ children.length -1 ]
With this fragment of code in coffeecript:
beforeNode = children[ children.length -1 ]
coffescript generate:
beforeNode = children[children.length(-1)];
How can I write source in coffescript to generate expected javascript code?
Thanks