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
Don’t use a space!
Or use a space on each side of the
-Results in