Assignment 5: Alert is Undefined

Ok, so I still have a 100% working page, but now autograder is giving me the error “Alert is undefined”. It is referencing the alerts in my formSubmission() function. From what I’ve found online, this error occurs when someone tries to run a program containing alert outside of the browser. I’m not sure how that applies in this case, so if someone could point me in the right direction, it would be much appreciated.

I’m in a similar position, but with “window is not defined.” I’ll let you know if I figure it out. If anyone can help, I’d appreciate it.

I just used alert(alert message). I’m guessing you used window.alert(alert message)? If so, you must have the exact same problem as me.