In Rust yes, in JavaScript not really.
In JS it would be const x = 1, which would be equivalent again.