• AnAngryAlpaca@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    Yes, but it is JavaScript? Don’t you need to terminate the lines with ; to be valid JavaScript? My guess was that this is python code.

    • kia@lemmy.ca
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      You don’t need terminating semicolons in JavaScript. They’re added in if missing. It can actually cause a few bugs around returns.