1-预编译习题的讲解
作者:互联网
1 创建AO对象
2 找形参和变量的声明,作为AO对象的属性名,值是undefined
3 实参和形参相统一
4 找函数声明,覆盖变量的声明
function fn(a,c){
console.log(a)//function a(){}
var a=123;// a=123
console.log(a);//123
console.log(c);//function c(){}
function a(){
}
console.log(d)//undefined
console.log(b)//undefined
var b=function(){
}
console.log(b)//function(){}
function c(){}
console.log(c)//function c(){}
}
fn(1,2);
AO:{
a:undefined 1 function a(){}
b:undefined function(){}
c:undefined 2 function c(){}
d:undefined
}
标签:function,console,log,AO,编译,123,讲解,习题,undefined 来源: https://blog.csdn.net/weixin_50464014/article/details/120643649