Possible Duplicate:
Javascript: var functionName = function() {} vs function functionName() {}
I am curious to which is best pratice when creating a function in js
function x() {
...
}
OR
var x = function() {
...
}
Is there a difference or are they the exact same thing.