Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.ml

11 replies

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)

1
lemmy.world

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

4

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));

2

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

1

You reached the end

JavaScript devs be like | Spyke