Results 1 to 2 of 2

Thread: JavaScript Option Explicit Equivalent

  1. #1

    Thread Starter
    Hyperactive Member Sneeden's Avatar
    Join Date
    Oct 2001
    Location
    Sneedville
    Posts
    258

    JavaScript Option Explicit Equivalent

    It there something?

  2. #2
    Member
    Join Date
    Jan 2003
    Posts
    44
    Not really. The best you can do is declare all your variables with var. When evaluating an unassigned variable without var, the evaluation results in a runtime error. If the unassigned variable was declared with var, the evaluation results in the undefined value, or NaN in numeric contexts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width