CodeBeginner

Uncaught SyntaxError: Unexpected token <

Also known as Unexpected token < · Unexpected token '<' · SyntaxError

A parsing error that occurs when JavaScript code contains a less-than token where the parser cannot accept it.

In the real world

A script URL returns an HTML fallback page starting with <!doctype html>, so the browser cannot parse it as JavaScript.

Related

Go a little deeper