title: how to use javascript functions? (defining functions in label)
body: <p>There are different ways of defining the javascript functions. I often use the simplest way to define the function </p>
  
  <pre><code>function myfunc(){
  }
  </code></pre>
  
  <p>and the next way to define the function in the variable like this (a little bit confusing the way of using)</p>
  
  <pre><code>var myvar = myfunc(){
  /*some code*/
  }
  </code></pre>
  
  <p>and the difficult way for me and mostly found in codes developed by advanced programmers like the following</p>
  
  <pre><code>var SqueezeBox={presets:{onOpen:function(){},onClose:function(){}}
  </code></pre>
  
  <p>Please, can anyone clear my concept on this how can I use?</p>