Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Unexpected token: operator (<) (line: X, col: Y)

Avatar

Employee

I'm getting the following error:

Unexpected token: operator (<) (line: X, col: Y)

What's wrong with my code?

1 Accepted Solution

Avatar

Correct answer by
Employee

You’ve likely chosen the incorrect setup type for your script. Based on the contents of the script, the editor was expecting HTML, but you set the script to Javascript or vice versa. For example: if your script contains <script> tags, but you set the script up as Javascript, you will receive this error when you attempt to save the code.

View solution in original post

0 Replies

Avatar

Correct answer by
Employee

You’ve likely chosen the incorrect setup type for your script. Based on the contents of the script, the editor was expecting HTML, but you set the script to Javascript or vice versa. For example: if your script contains <script> tags, but you set the script up as Javascript, you will receive this error when you attempt to save the code.