469,336 Members | 5,273 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

Java Script Memory Management Questions

Hi,

I'm trying to find out how JavaScript manages its memory. In
particular when using the 'new' operator to create an object is it
necessary to explicitly delete this object (before it moves out of scope,
like c++) or does JavaScript clean this up automatically?

What about string varaible which uses concatenation extensively?

Thanks.

George
Jul 20 '05 #1
1 2447
george xu wrote:
Hi,

I'm trying to find out how JavaScript manages its memory. In
particular when using the 'new' operator to create an object is it
necessary to explicitly delete this object (before it moves out of scope,
like c++) or does JavaScript clean this up automatically?

What about string varaible which uses concatenation extensively?

Thanks.

George


Javascript has it's own garbage collection mechanism. You do not need
to delete variables created with new. (I dont think you can)

Strings follow the same model.

Brian

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

458 posts views Thread by wellstone9912 | last post: by
63 posts views Thread by s0suk3 | last post: by
318 posts views Thread by King Raz | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.