If so, what is the syntax for such a declaration?
As "Pointy" so carefully notes, ECMAscript has no such feature. However, JavaScript does:
const a = 7; document.writeln("a is " + a + ".");
Of course, if you're writing code to put on the web to run in web browsers, this might not help you much. :-)