when I try and run javascript code in repl.it online I am always getting the same error regardless of what ever I type in the editor.Please see attached screenshot.
it may be something from one of the other files
if you want to avoid interference create a repl for just JavaScript
It is no longer repeating the previous error message but it is not outputting correct answer .And now the page just keeps refreshing!
Sometimes with REPL.it - it can have issues. Did you try this locally in VS code and run it from the terminal?
When I use REPL for react example it doesn’t like some packages etc so try locally that is what I would do or try codepen