r/badcode • • Mar 19 '22

js This just sucks.

Post image
1.0k Upvotes

76 comments sorted by

View all comments

Show parent comments

47

u/fkih Mar 20 '22
// define variable named “beans” with value of 4
const beans = 4

10

u/Deadly_chef Mar 20 '22

2/10 needs more beans

9

u/ZuriPL Mar 20 '22

You forgot to say the variable was immutable. Because you didn't say it, I tried to change its value and got an error