are objects declared through var in the node environment mounted to the global global object? But through global., How can the result printed out by the variable name be undefined?
ask the boss for help?
var age = 22;
var printAge = function (age) {
console.log(age);
}
console.log("var",window.age===22);//false
console.log("var",window.printAge===printAge);//false
console.log(global);//window
console.log(global.age);//undefined