前端学习笔记202310学习笔记第一百壹拾天-作用域&作用域链&预编译&闭包基础6

a=1
function test(e){
function e(){}
arguments[0]=2
console.log(e)
if(a){
var b=3
}
var c;
a=4;
var a;
console.log(b)
f=5
console.log(c)
console.log(a)
}
var a;
test(1)
console.log(a)
console.log(f)
//GO{
// a:undefined-->1
// test:function test(){}
// f:5
//}
//AO{
// e:undefined---->1---->function e(){}--->2
// b:undefined
// c:undefined
// a:undefined---->4
//}

运行结果

posted @   前端导师歌谣  阅读(2)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
历史上的今天:
2022-11-05 react实战笔记180:用redux存储登录状态1
2022-11-05 react实战笔记147:useQuery的返回值2
2022-11-05 react实战笔记146:useQuery的返回值1
2022-11-05 react实战笔记145:缓存演示
2022-11-05 react实战笔记144:添加getStudentById
2022-11-05 react实战笔记143:修改代码
2022-11-05 前端项目实战144-ant design table进行数据遍历
点击右上角即可分享
微信分享提示