Program not running on the webpage of HTML CSS Javascript

Question:

Repl link:

code snippet

Not running on webpage always shows that page not loading page not loading I’m frustrated now