I have a JS function which gets called on the page every few seconds. It's an AJAX update thing.

Being a function, I declare local variables. I don't want to use closures or global variables for various reasons.

I'd never considered this, but do I need to release/clear the variables at the end of the function to release memory or will JS do this for me automatically?

Edit
Report