The difference between the two functions
Posted
by Rushi
on Stack Overflow
See other posts from Stack Overflow
or by Rushi
Published on 2008-09-22T12:24:06Z
Indexed on
2010/04/20
4:33 UTC
Read the original article
Hit count: 341
JavaScript
What's the difference between:
function sum(x, y) {
return x+y;
}
// and
var sum = function (x, y) {
return x+y;
}
Why is one used over the other?
© Stack Overflow or respective owner