Hi all,
This is probably an easy question, but I was not sure of how to google an answer for it. Is there any real difference between these two function declarations?
function DoSomething(parm) {The same goes when defining a custom object. For example:
//do something here
}
DoSomething = function(parm) {
//do something here
}
function MyObject() {Thanks.
//initialization code
}
MyObject = function() {
//initialization code
}
