最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Multiple assignment of variables in coffee - Stack Overflow

programmeradmin1浏览0评论

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'].

发布评论

评论列表(0)

  1. 暂无评论