js_weird_syntax_error

by ausaki

HTML

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>Test</title>
  </head>
  <body>
    <h1>Open Console to See The Syntax Error</h1>
    <script type="text/javascript">
      const foo=`bar`
      console.log('hello') // add ; to fix syntax error
      (function () {
      	alert("It's worked!!!")
      })()
    </script>
  </body>
</html>