i'm returning, or trying to get back into JS programming.

what's a better way to track a variable, better than using alert('variable')?

thanks,

trying to catch up here.