30
imd1PTG
5y

Found this on web.

Comments
  • 5
    Parameters? If so then it doesn't require much knowledge at all :x
  • 3
    Can I live there
  • 4
    @dontPanic hopefully you're drunk when you do it 😏
  • 1
    This 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.
  • 2
    @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.
  • 0
  • 0
    @Chefren interesting. Well thats new to me. Thanks for the info.
  • 0
    Even my mother could read that...nice idea though
  • 3
    Hmmmmm....
    "undefined. Secret word:parameters"?

    Cause "your_drink" is defined, but not declared ;)
  • 2
    Finally, two passions combined: coding and owning a bar! Mad props on the syntax highlighting as well.
Add Comment