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
- 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
1 Answer
Reset to default 15Try with [a, b, c] = ['this', 'is', 'variables']
.
本文标签: javascriptMultiple assignment of variables in coffeeStack Overflow
版权声明:本文标题:javascript - Multiple assignment of variables in coffee - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743705150a2524987.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论