How can you make a variable/Object read only in Javascript?

Posted by codeninja on Stack Overflow See other posts from Stack Overflow or by codeninja
Published on 2010-03-11T20:23:11Z Indexed on 2010/03/11 20:24 UTC
Read the original article Hit count: 287

Filed under:
|
|
|

I have an Object that I only want to be defined when constructed. How can I prevent the Object reference from being changed?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about object