Help with a syntax error

I’m doing the Basic Data Structures lessons. Specifically this one, which asks you to check for the presence of an element in an array with indexOf().

Before I even enter anything into the test field, the console says:

Syntax Error: invalid regular expression flag s

And no correct solutions to the problem will allow me to progress the challenge (including the provided solutions in the Hints page). What’s causing this?

Have you tried clearing your browser cache?

Tried just now, with no change.

I’m on Firefox 76.0.1, perhaps that’s an issue.

Outdated browser, embarrassing. Hopefully this helps somebody anyway.

1 Like