▲ 101 ▼ Got myself a new mug. (thelemmy.club) submitted 2 months ago by genzboomer@lemmy.zip to c/programmer_humor@programming.dev 31 comments fedilink hide all child comments
[–] python@lemmy.world 16 points 2 months ago (2 children) Me neither, but I bet it's still valid JS syntax permalink fedilink source parent hideshow 2 child comments replies: [–] dohpaz42@lemmy.world 9 points 2 months ago (1 child) Yes. In JavaScript, Objects without explicit keys will use the value as the key. At least that’s how it works in Chrome devtools output. 🤷♂️ permalink fedilink source parent hideshow 1 child comment replies: [–] ZoteTheMighty@lemmy.zip 8 points 2 months ago This is insane, but ultimately, FAR from the most insane thing JavaScript has done to me this week, so I'll let it slide. permalink fedilink source parent
[–] dohpaz42@lemmy.world 9 points 2 months ago (1 child) Yes. In JavaScript, Objects without explicit keys will use the value as the key. At least that’s how it works in Chrome devtools output. 🤷♂️ permalink fedilink source parent hideshow 1 child comment replies: [–] ZoteTheMighty@lemmy.zip 8 points 2 months ago This is insane, but ultimately, FAR from the most insane thing JavaScript has done to me this week, so I'll let it slide. permalink fedilink source parent
[–] ZoteTheMighty@lemmy.zip 8 points 2 months ago This is insane, but ultimately, FAR from the most insane thing JavaScript has done to me this week, so I'll let it slide. permalink fedilink source parent