Javascript new keyword and memory management

Posted by Whyamistilltyping on Stack Overflow See other posts from Stack Overflow or by Whyamistilltyping
Published on 2010-03-08T16:01:59Z Indexed on 2010/03/08 16:06 UTC
Read the original article Hit count: 644

Coming from C++ it is hard grained into my mind that everytime I call new I call delete. In javascript I find myself calling new occasionally in my code but (hoping) the garbage collection functionality in the browser will take care of the mess for me.

I don't like this - is there a 'delete' method in javascript and is how I use it different from in C++?

Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about memory