JS prompt doesn't work?

Please Add or Fix This Issue, So I’m working on a HTML file I added the added a script that have a prompt Tried to run It The prompt window didn’t appear I thought I messed up the code so I went and Opened It In The Browser And The Prompt Appeared. Please Add The pop up window or anything for the Prompt.