the remainder operator should return a number or a NaN right? do we actually need the triple here?

@marcos@lemmy.world
link
fedilink
2
edit-2
8M

Not really. But with JS it’s better safe than sorry.

The GP’s addition is unnecessary, but I fully support anyone that decides to do it.

point taken!

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 141 users / day
  • 300 users / week
  • 692 users / month
  • 2.83K users / 6 months
  • 1 subscriber
  • 1.56K Posts
  • 34.7K Comments
  • Modlog