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?