In Flex, the semicolon is optional as a statement separator, but omitting semicolons can be confusing.
Noncompliant code example
function fun() {
return // Noncompliant
5 // Noncompliant
}
print(fun()); // prints "undefined", not "5"
Compliant solution
function fun() {
return 5;
}
print(fun());