Why does JavaScript code often pad curly braces with spaces, while Python (for instance) does not?

后端 未结 0 1199
你的背包
你的背包 2020-12-25 10:00

In JS code, curly braces are often separated from their contents by a space.

For example,

obj = { \'foo\': \'bar\' }

whereas in Python this

相关标签:
回答
  • 消灭零回复
提交回复
热议问题