1 Reply Latest reply on May 15, 2013 11:56 AM by TimJaramillo

    Function Declaration Syntax - Best Practices

    FlexAce Level 1

      Id there any difference between these two declarations?

      If not, is one better that the other?

       

       

      sym.myFunction = function(parameter1,parameter2){

            // do stuff here 

      }

       

           or

       

      function myFunction(parameter1,parameter2){

            // do stuff here 

      }

       

       

      I'm seeing examples of both

       

       

      Thanks

      Mathias