Function not working

Hello good people! :beer:

Is this right?


function something(){
   //code
}

mc.onRelease = function(){
   something();
}
 

or is it like this?

 
something = function(){
   //code
}

mc.onRelease = something;

Thanks!