Possible Duplicate:
JavaScript: When should I use a semicolon after curly braces?
Someone added semicolon after function declaration, but someone not. Is this a good practice to add semicolon after function declaration?
function test(o) {
}
function test(o) {
};
A function declaration does not need (and should not have) a semicolon following it:
However, if you write a function as an expression, like the variable initializer below, then the statement should be terminated with a semicolon, just like any other statement would be:
See more about constructor vs declaration(statement) vs expression.