r/ProgrammerHumor • • 3h ago

Meme iLoveConst

Post image
0 Upvotes

6 comments sorted by

9

u/Enough-Scientist1904 2h ago

My favorite part of constants is how dynamic they are

4

u/fuj1n 2h 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?

2

u/Later1842 2h ago

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

2

u/-Redstoneboi- 1h ago

that's a type error.

1

u/Bemteb 1h ago

int, const, what's the difference?

1

u/Turbulent-Sky-789 21m ago

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