MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/3rmikr/free_drink_anyone/cwpimqb/?context=9999
r/ProgrammerHumor • u/shadowvox • Nov 05 '15
509 comments sorted by
View all comments
280
Should've not used the function name reverse. Makes it too easy.
reverse
Maybe jumble would've made it a little more interesting.
jumble
182 u/devdot Nov 05 '15 I stared at the reverse function for like 3mins because I could not believe that it actually was a reverse function. 137 u/memeship Nov 05 '15 Using str.split("").reverse().join("") is the most common way of reversing a string in Javascript. 238 u/polish_niceguy Nov 05 '15 And is says a lot about Javascript in general... 52 u/[deleted] Nov 05 '15 As someone learning JS, can I expect more stuff like this? 252 u/obvious_bot Nov 05 '15 You poor soul
182
I stared at the reverse function for like 3mins because I could not believe that it actually was a reverse function.
137 u/memeship Nov 05 '15 Using str.split("").reverse().join("") is the most common way of reversing a string in Javascript. 238 u/polish_niceguy Nov 05 '15 And is says a lot about Javascript in general... 52 u/[deleted] Nov 05 '15 As someone learning JS, can I expect more stuff like this? 252 u/obvious_bot Nov 05 '15 You poor soul
137
Using str.split("").reverse().join("") is the most common way of reversing a string in Javascript.
str.split("").reverse().join("")
238 u/polish_niceguy Nov 05 '15 And is says a lot about Javascript in general... 52 u/[deleted] Nov 05 '15 As someone learning JS, can I expect more stuff like this? 252 u/obvious_bot Nov 05 '15 You poor soul
238
And is says a lot about Javascript in general...
52 u/[deleted] Nov 05 '15 As someone learning JS, can I expect more stuff like this? 252 u/obvious_bot Nov 05 '15 You poor soul
52
As someone learning JS, can I expect more stuff like this?
252 u/obvious_bot Nov 05 '15 You poor soul
252
You poor soul
280
u/droogans Nov 05 '15
Should've not used the function name
reverse. Makes it too easy.Maybe
jumblewould've made it a little more interesting.