lemmyland
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Gsus4@mander.xyz to Programmer Humor@programming.dev · 26 天前

new Date("wtf")

jsdate.wtf

external-link
message-square
16
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
217
external-link

new Date("wtf")

jsdate.wtf

Gsus4@mander.xyz to Programmer Humor@programming.dev · 26 天前
message-square
16
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
How well do you know JavaScript's Date class?
alert-triangle
You must log in or register to comment.
  • chocrates@piefed.world
    link
    fedilink
    English
    arrow-up
    44
    ·
    26 天前

    Hahahaha I hate it

  • JohnnyCanuck@lemmy.ca
    link
    fedilink
    arrow-up
    39
    ·
    26 天前
    Tap for spoiler

    Except for some reason “2” is interpreted as a month, and the year is set to 2001.

    I’m dead 😭 (and it just gets better from there)

    • brisk@aussie.zone
      link
      fedilink
      arrow-up
      8
      ·
      26 天前

      This is the one that broke me

  • Gsus4@mander.xyzOP
    link
    fedilink
    arrow-up
    28
    ·
    26 天前

    It’s like playing https://catmario.eu/

    • TJA!@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      26 天前

      Ohh I haven’t seen this game for ages. I think I played this the last time about 15-20 years ago

  • dan@upvote.au
    link
    fedilink
    arrow-up
    26
    ·
    edit-2
    26 天前

    I’ve been using JS for a long time, and have worked on some date and time libraries, and only got 12/28. Wow there’s a lot of edge cases.

    • zqwzzle@lemmy.ca
      link
      fedilink
      English
      arrow-up
      18
      arrow-down
      1
      ·
      edit-2
      25 天前

      As a non JS dev 15/28 by asking myself “what is the the most non-intuitive/inconsistent behaviour for this API to have?” ¯\(ツ)/¯

  • ggppjj@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    ·
    26 天前

    Question 9 broke me.

  • dumnezero@piefed.social
    link
    fedilink
    English
    arrow-up
    13
    ·
    26 天前

    I scored 10/28 on https://jsdate.wtf/ and all I got was this lousy text to share on social media.

    horrible

  • Sʏʟᴇɴᴄᴇ@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    10
    ·
    26 天前

    I use JS and TS semi-regularly and got 5/28 🤡

  • fin@sh.itjust.works
    link
    fedilink
    arrow-up
    10
    ·
    26 天前

    Absolutely crazy

    spoiler

  • madcaesar@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    26 天前

    10/28 but a lot of it was guessing lol

    This is some bullshit right here!

  • DeadPixel@lemmy.zip
    link
    fedilink
    arrow-up
    5
    ·
    26 天前

    🤯

  • HappyFrog@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    4
    ·
    26 天前

    Ah yes… JS, the BS of the CW

  • ma1w4re@lemmy.zip
    link
    fedilink
    arrow-up
    3
    ·
    25 天前

    13/28, last time I touched JavaScript was about 3 years ago. What a terrible language. Love it.

  • InnerScientist@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    26 天前

    Thanks,

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.69K users / day
  • 5.08K users / week
  • 8.28K users / month
  • 20.1K users / 6 months
  • 1 local subscriber
  • 25.5K subscribers
  • 1.61K Posts
  • 56.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org