locked
'this' keyword in JS RRS feed

  • Question

  • Hello,

    What does the 'this' keyword reference to in a Metro style Javascript app in the default context? Does it point to the current page or window?

    Thanks!

    Saturday, August 4, 2012 10:12 PM

Answers

  • It depends on the context.  It is equivalent to an object pointer in an Object Oriented language.  Often it points to the application object in the templates.

    -Jeff


    Jeff Sanders (MSFT)

    Monday, August 6, 2012 3:11 PM
    Moderator