title: functions an immediate strange behavior error in console.log
body: <p>I have code:</p>
  
  <pre><code>function fn(ob)
  {
  console.log(ob.name)
  }
  
  fn({name:"myName"})
  
  
  (function(text){
  
  console.log(text)
  
  })("Error")
  </code></pre>
  
  <p>But when i run this i get TypeError: fn(...) is not a function
  [Learn More] on console. Why?</p>