location.replace() Not Working

Hello Repl!
I am creating a game, and the location.replace() in level1.js in source is not working. Can I have some help please?

You are viewing a single comment. View All

@launcherman08 My bad, JavaScript's .replace() takes in two arguments - the string to be replaced, and the string to replace it with. Since I don't know what you're trying to do, that's all I can say for now.