Slow change is good for small projects that you want to build once and use for decades without much maintenance.
Careful there :-) Modern javascript has semicolons and is introducing pretty horrendous syntax for private variables (an octothorpe) and possibly for the pipe operator (percent sign, was it?) and for tuples and records, yet is showing no signs of dying.
function go() {
return
5 + 3;
}
console.log(go())
Since semicolons are optional, it's treating "return" as its own statement and "5 + 3" as a separate one.There are no hidden gotchas like this in PHP though since semicolons are always used:
function go() {
return
5 + 3;
}
var_dump(go());
This will return int(8).