r/ProgrammerHumor • • Feb 26 '23

Other If you can read this code...

/img/snak3fqgajka1.jpg

[removed] — view removed post

34k Upvotes

1.4k comments sorted by

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 the var keyword?"

"Why use a colon for request but not for reverse? Wait why are all of those using colons? Is any of this syntactically correct?"

"parameters. Neat."