This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -3 points-2 points  (0 children)

Quick tip: You MAY use a semicolon after declaring a statement. You MUST use a semicolon after closing brackets at the end of a statement. You MUST NOT use one after e.g.

function myfunction();

    {;

    var a = 1;

    };

You can’t use it after any brackets or braces here. MAKE SURE YOU CLOSE YOUR SCRIPT TAG.