Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 years ago

JavaScript devs be like

lemmy.ml

message-square
9
fedilink
35

JavaScript devs be like

lemmy.ml

☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
9
fedilink
alert-triangle
You must log in or # to comment.
  • HoornseBakfiets@feddit.nl
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    1 year ago

    deleted by creator

  • BrianTheeBiscuiteer@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 years ago

    Total shitpost. We use let now.

    • 𝘋𝘪𝘳𝘬@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      You mean const.

  • ditherwither@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 years ago

    This is art

    • jmsw22@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      TikTok has rotted my brain, all I can hear is this https://m.youtube.com/watch?v=gXk0QDcRwkU

  • Hypnosis4162@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    I code in Python. Can someone explain what is that magic require function here with a bunch of strings?

    • ☆ Yσɠƚԋσʂ ☆@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      it’s how modules get loaded with node.js

  • beforan@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    Either that for the sweet sweet node_modules, or this for the code golf:

    Array(100).fill().forEach((_, n) => console.log((++n % 3 ? "" : "Fizz") + (n % 5 ? "" : "Buzz") || n));

  • tony@l.bxy.sh
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    It doesn’t look like condition is imported, only ifCondition so I’m not sure that will run

  • Xanvial
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    condition undefined

    Also lol at that number to string import

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

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.
Visibility: Public
globe

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

  • 417 users / day
  • 2.34K users / week
  • 3.7K users / month
  • 8.9K users / 6 months
  • 440 local subscribers
  • 37.7K subscribers
  • 1.83K Posts
  • 39K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org