Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • \$\begingroup\$ Surely the single character variable shouldn't be one of 0123456789? And would it be a valid assumption that all long variable names don't start with a digit? \$\endgroup\$ Commented Feb 23, 2023 at 20:03
  • 2
    \$\begingroup\$ So should const change to var or not? (first rule says no, first example says yes) \$\endgroup\$ Commented Feb 23, 2023 at 20:17
  • 2
    \$\begingroup\$ Why isn't for (let i = 0; i < 21; i++) { in the final iteration of the example for(let i=0;i<21;i++){ (spaces removed, except after let )? \$\endgroup\$ Commented Feb 23, 2023 at 21:17
  • 3
    \$\begingroup\$ doesn't this question essentially require you to parse the entire JS grammar? Seems a bit broad \$\endgroup\$ Commented Feb 23, 2023 at 23:36
  • 1
    \$\begingroup\$ @Infigon Oh, this isn't a duplicate, and is in fact quite an interesting and different challenge. It's just related, thought I'd send the link if anyone was interested in a similar challenge \$\endgroup\$ Commented Feb 24, 2023 at 22:17