Change the script from a command line program to an HTML

Hi!

I’m encountering a problem with HTML. My task was to change the script from a command line program to an HTML. Here is my code: https://replit.com/@cl4767/HTML-CSS-JS#School/hw_11.html. Could someone please take a look and tell me what is wrong? Your help is really appreciated!
Thank you!

Please do not make posts about school assignments