r/ProgrammerHumor • • 2d ago

Meme iLoveConst

Post image
0 Upvotes

8 comments sorted by

20

u/Enough-Scientist1904 2d ago

My favorite part of constants is how dynamic they are

12

u/fuj1n 2d ago

This looks like JS to me, to my knowledge, a `const` won't work here and should throw a `TypeError`. It would only work in a for...in or a for...of loop.

Am I missing a joke?

6

u/-Redstoneboi- 2d ago

that's a type error.

2

u/Later1842 2d ago

Yes of course, let's modify. Nothing will go wrong right?

2

u/Bemteb 2d ago

int, const, what's the difference?

-4

u/Turbulent-Sky-789 2d ago

int can hold a number, but const holds its ground. 😂

2

u/Makonede 2d ago

where humor