Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Ronald2727yThis code doesnt even work? They use this in the request fn but the this is bound to the request fn not the object literal that holds the str1 str2 str3 properties... its just going to be undefined a bunch of times.
-
Chefren1137y@Ronald "this" in the context of a method-invocation tied to an object, will point to the object. So it will work. :) The time it wouldn't would be if you start passing that function around or saving it in some variable and invoking it.
-
Hmmmmm....
"undefined. Secret word:parameters"?
Cause "your_drink" is defined, but not declared ;) -
Finally, two passions combined: coding and owning a bar! Mad props on the syntax highlighting as well.
Found this on web.
undefined