name for Function expression
2022年5月1日小于 1 分钟
name for Function expression
Question
What does the code snippet to the right output by console.log
?
Snippet
function a(){
}
const b = function() {
}
const c = function d() {
console.log(typeof d)
d = 'e'
console.log(typeof d)
}
console.log(typeof a)
console.log(typeof b)
console.log(typeof c)
console.log(typeof d)
c()