<html><head><script type="text/javascript">const nochange='This should always be the same';function writeIt () { document.writeln (nochange);}</script></head><body><input type="button" onclick="writeIt()" value="Write"></body></html>
how come any time I add a const statement to a script I get an error at the line of the const statement? also functions called from an event eg onload="test()" return an object expected error ( even if they are not related to the const statement).Core javascript guide says:You can create a read-only, named co