If so, what is the syntax for such a declaration?
If you want to make sure the value cannot change use a function.
So, instead of:
var Const_X=12
use:
function Const_X() { return 12; }