MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghumor/comments/1rniykm/my_javascript_brain_said_refactor/o996rzy/
r/programminghumor • u/JackAuduin • Mar 07 '26
21 comments sorted by
View all comments
Show parent comment
0
[deleted] — view deleted comment
1 u/Kaffe-Mumriken Mar 08 '26 Hard coded strings in 2026? You’re not getting these from a database? 1 u/MinecraftPlayer799 Mar 11 '26 That is not clean at all. Try this:let foods = ["International", "Hispanic", "Indian", "Asian", "Kosher", "Italian"]; console.log(foods.map(n => n + " Food"));
1
Hard coded strings in 2026? You’re not getting these from a database?
That is not clean at all. Try this:
let foods = ["International", "Hispanic", "Indian", "Asian", "Kosher", "Italian"]; console.log(foods.map(n => n + " Food"));
View all comments
Show parent comment
0
u/[deleted] Mar 08 '26
[deleted] — view deleted comment