We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
不使用loop循环,创建一个长度为100的数组,并且每个元素的值等于它的下标
据说是 某宝的笔试题,大家可以试一试
The text was updated successfully, but these errors were encountered:
Object.keys((new Array(100)).fill(100))
Sorry, something went wrong.
[...Array(100).keys()]
Array.from({length:100},(i,j)=>j)
No branches or pull requests
不使用loop循环,创建一个长度为100的数组,并且每个元素的值等于它的下标
The text was updated successfully, but these errors were encountered: