Accessing a variable before its definition

Question | Dec 6, 2017 | hkumar 

enter image description here

The local variable 'x' inside function oozie is logged before and after it is defined. Also, a global variable of same name (x) is defined in the global scope:

var x = 100; // Global

function oozie() {
 console.log(x);
 var x = 200;
 console.log(x);
}

// call oozie
oozie();

What will be logged on console when oozie is called?