whoops. you are right. I missed that you are using an assignment. 
```
(function(){
  callThing();
  function callThing(){console.log('hi')};
})()
//-> hi 

(function(){
  callThing();
  var callThing = function(){console.log('hi')};
})()
// -> TypeError: undefined is not a function
```