Files
2018-08-02 17:53:23 +01:00

12 lines
156 B
JavaScript

function f(x) {
console.log(x); // OK
}
console.log(x); // NOT OK
var x = 1;
function g() {
console.log(y); // OK (not in same function)
}
var y = 1;