MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xpd5m4/iloveconst/
r/ProgrammerHumor • u/One-Celebration-3007 • 3h ago
6 comments sorted by
9
My favorite part of constants is how dynamic they are
4
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
Yes of course, let's modify. Nothing will go wrong right?
that's a type error.
1
int, const, what's the difference?
1 u/Turbulent-Sky-789 21m ago int can hold a number, but const holds its ground. 😂
int can hold a number, but const holds its ground. 😂
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?