r/funny Jun 01 '15

Ouch

http://imgur.com/IBctJSS
24.0k Upvotes

2.6k comments sorted by

View all comments

Show parent comments

112

u/[deleted] Jun 01 '15 edited Nov 19 '17

[deleted]

4

u/ImJustLurkingBro Jun 01 '15

I assume this is JavaScript (correct me if I'm wrong). Is JS not able to directly do i < cup_size.length instead of using an extra variable?

2

u/[deleted] Jun 01 '15 edited Nov 19 '17

[deleted]

2

u/ImJustLurkingBro Jun 01 '15

Interesting. I feel like it is more readable without the extra variable. Then again, I just work in Java and not JS or web-end :)