hejialianghe / Senior-FrontEnd

🔥 🔥🔥 🔥🔥 高级开发工程师必备,打通全栈任督二脉,文档地址gitee版(Senior development engineers must understand the web body of knowledge, document addresses):https://js.youliaowu.com

Home Page:https://js.youliaowu.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2.1.1 函数变量有点问题

Indomite opened this issue · comments

`function fn() {
var t = 10
var f = 10
console.log(i + j)
}
// 我们直接打印fn会出现一段字符串
console.log(fn)
/*
打印结果
f fn() {
var t=10;
var f=10;
console.log(i+j)
}
*/

// 加上括号才执行里面的代码
fn() // 20`

这里应该是 i j 吧

我改一下,谢谢指正