The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Hoisting in JavaScript

Hoisting in JavaScript

3:39
In this lesson, we'll walk through variable, function declaration, and function expression hoisting.
Watch this lesson now
Avatar
egghead.io

In this lesson, we'll walk through variable, function declaration, and function expression hoisting.

Avatar
Shoeb

In the very last example in this video, whatever happened to the second function declaration?

var bar = function() {
return 2;
};

Did it just disappear after hoisting?

The JSBin for this example is at:

https://jsbin.com/mijuye/edit?html,js,output

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?