Semicolon after curly brackets of functions?


In line 6 there is a semicolon after the function defenition. I have readen that semicolon should be avoid after curly brackets. What do you think?


For a discussion/opinion do a google search
javascript semicolon after function definition


You should avoid semicolons after curly brackets of loops and conditions. Here is an explanation why: . But for functions this syntax applies:

var name = value;

for function value is just a bit more complex.


Thank you!

(I was unable to find this post again until today :confused:)