Limit on how many variables in Javascript code?

Discussion in 'JavaScript' started by Philosophaie, Jan 15, 2011.

  1. #1
    Is there a limit on how many variables in Javascript code?
     
    Philosophaie, Jan 15, 2011 IP
  2. atxsurf

    atxsurf Peon

    Messages:
    2,394
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    0
    #2
    none that I know off. Do you think you have hit one?
     
    atxsurf, Jan 15, 2011 IP
  3. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In theory, you are only limited by your imagination and the available free memory.
    In practice, the browser would probably stall or crash while parsing lots of variables.

    Stupid browsers ruining our fun! :(
     
    Cash Nebula, Jan 16, 2011 IP
  4. mairr

    mairr Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well there is no limit but limitation is relevant with the page load and scripts error.
     
    mairr, Jan 27, 2011 IP