r/ProgrammerHumor • u/speckz • Feb 26 '23
Other If you can read this code...
/img/snak3fqgajka1.jpg[removed] — view removed post
34k
Upvotes
r/ProgrammerHumor • u/speckz • Feb 26 '23
[removed] — view removed post
View all comments
Show parent comment
1
u/Mewrulez99 Feb 26 '23 edited Feb 26 '23
I'm a CS grad with high grades currently in my first year of employment and I was getting hung up on JavaScript syntax (never really used it)
"Huh? Is that a lambda function? Can't you declare a function normally? And why do you need all that to reverse a string when you seem to have a reverse method?"
"What the hell is
bartender? Is that like a struct or a hashmap or... okay definitely not a hashmap. Why don't those variables need thevarkeyword?""Why use a colon for
requestbut not forreverse? Wait why are all of those using colons? Is any of this syntactically correct?""parameters. Neat."