By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,685 Members | 1,758 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,685 IT Pros & Developers. It's quick & easy.

Java Script Memory Management Questions

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.