difference between the two ways of defining javascript functions?

Posted by powerboy on Stack Overflow See other posts from Stack Overflow or by powerboy
Published on 2010-04-20T03:54:19Z Indexed on 2010/04/20 4:03 UTC
Read the original article Hit count: 237

Filed under:
|

What's the different between

var foo = function() {
  // do something here
};

and

function foo() {
  // do something here
}

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about beginner