Skip to content

[js] 第473天 使用js写一个方法生成0000-9999一万个数字(4位数) #2719

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第473天 使用js写一个方法生成0000-9999一万个数字(4位数)

3+1官网

我也要出题

Activity

wheatup

wheatup commented on Aug 1, 2020

@wheatup
Array.from({ length: 10000 }, (_, i) => `${i}`.padStart(4, 0));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    jsJavaScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@wheatup

        Issue actions

          [js] 第473天 使用js写一个方法生成0000-9999一万个数字(4位数) · Issue #2719 · haizlin/fe-interview