How to create an object with every digits as it's key value in JavaScript?

后端 未结 0 1757
[愿得一人]
[愿得一人] 2021-02-06 16:05

So, Basically i was trying to create an object like {\'1\': 0, \'2\': 0, \'3\': 0.....\'9\': 0}. Is there any "javaScriptic" trick to do so?

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