Using the Javascript hoisting concept, I tried the following. I am not sure why the name variable has been picked up but not the age.
console.log(name); //Lydia
console.log(age); //error
age = 28;
name = 'Lydia';
console.log(name);
console.log(age);