admin管理员组

文章数量:1343367

Can I assign multiple variables in coffee like in python:

a, b, c = 'this', 'is', 'variables'

print c >>>variables

Can I assign multiple variables in coffee like in python:

a, b, c = 'this', 'is', 'variables'

print c >>>variables

Share Improve this question asked Mar 27, 2014 at 15:33 khexkhex 2,8287 gold badges35 silver badges57 bronze badges 1
  • 1 There is always the coffee script website which allows you to try simple snippets. For you case: goo.gl/pRqaWS – TheHippo Commented Mar 27, 2014 at 15:42
Add a ment  | 

1 Answer 1

Reset to default 15

Try with [a, b, c] = ['this', 'is', 'variables'].

本文标签: javascriptMultiple assignment of variables in coffeeStack Overflow