Javascript - Uncaught SyntaxError: Unexpected token const : I have created an empty `div` with the id of `warning_messages` and storing that div inside a `const` using javascript but it is throwing an error: `Uncaught SyntaxError: Unexpected token const`

Here is the div code:

    <div id="warning_messages"></div>

and the javascript:

    const warningMessages = document.getElementById('warning_messages');
