在节点中如何声明全局variables只能用于当前的执行上下文,在asynchronouscallback中不需要?

在节点中如何声明全局variables只能用于当前的执行上下文,在asynchronouscallback中不需要?

var obj = 'something' setTimeout( function(){ // callback context // i want to get null or undefined value for obj console.log(obj) }, 500);