Modern languages like Rust, Kotlin, and TypeScript, define their syntax to declare variables as:
myVariableName: VariableType
As opposed to the C-like approach not so old languages like JavaScript, C#, and Java take:
VariableType myVariableName
My question is, why the new trend? What was wrong with the old syntax and what makes the new syntax better?