Article From:

I only know that variables and function declarations have variable lifting, so what is the function expression? In other words, it is similar to variable lifting, the value is in place, the declaration is ahead of schedule.

Answer 0:


var a = function () {}

var In advance, assignment is later, which is actually a common variable declaration.

Answer 1:

I think you can write a demo when you spend time asking questions. Why don’t you write a look at it yourself?

Leave a Reply

Your email address will not be published. Required fields are marked *