0

Possible Duplicate:
Deleting Objects in JavaScript

This is the demo code:

function a(){
    this.a='aaa'
}
var aa=new a

How to clear the aa object from the memory?

0

2 Answers 2

1

I may be wrong but I think setting the variable to null should do the trick.

Sign up to request clarification or add additional context in comments.

Comments

1

set aa = null, alert(aa)!

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.