During the first call, since x is not defined, the else block is executed. In the else block, x is declared as a global variable. During the second call, since x was defined in the else block during the first call, the condition evaluates to true.