let someVar; // let someVar = undefined;
setTimeout(() => {
setValue('SOME VALUE');
}, 0);
console.log('Work, please! ' + someVar); // 'Work, please! undefined'
function setValue(value) {
someVar = value;
console.log('Variable Value: ' + someVar); // Variable Value: SOME VALUE
};
console.log('Work, please! ' + someVar); // 'Work, please! undefined'