Loading ...
Sorry, an error occurred while loading the content.

523Undefined variable

Expand Messages
  • Nagy Endre
    May 27 7:00 AM
      I'm trying to check if a variable is already defined and define if is not.

      If (Testvar === undefined) {
        var Testvar = {};

      JsLint say that Testvar was used before was defined.
      How can I check this in the right way?

      [Non-text portions of this message have been removed]
    • Show all 25 messages in this topic