JavaScript devs be like

96 points · 11 comments · view on lemmy.world

11 Comments

BrianTheeBiscuiteer@lemmy.world · 17 pts · 3y (3 replies)

Total shitpost. We use let now.

Dirk@lemmy.ml · 4 pts · 3y (1 reply)

You mean const.

Crackhappy@lemmy.world · 1 pts · 3y

Const ipated = 1;

TheInsane42@lemmy.ml · 1 pts · 3y

Unless you code for an ancient java class that includes js code... (yuck)

No, no rewrite, it's going to de replaced soon(tm)... (like the cobol code)

HoornseBakfiets@feddit.nl · 16 pts · 3y
[ removed ]
ditherwither@lemmy.world · 5 pts · 3y (1 reply)

This is art

jmsw22@lemmy.ml · 1 pts · 3y

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

Hypnosis4162@lemmy.world · 4 pts · 3y (1 reply)

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

yogthos@lemmy.ml · 0 pts · 3y

it's how modules get loaded with node.js

beforan@lemm.ee · 2 pts · 3y

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 · 1 pts · 3y

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

morose_coder@lemmy.world · 1 pts · 3y

is this node version 12?