DEV Community

loading...

JavaScript problem

AndyBullet
・1 min read

Hi guys!
Can someone say me why in this code, the alert doesn't work? https://pastebin.com/AaBZupzi

Discussion (3)

Collapse
adam_cyclones profile image
Adam Crockett • Edited

Hi Andy, maybe you could share a link to the file instead? It hasn't come through so well on this post. Alternatively please wrap your code in backtick quotes?


 ` 3 of those quotes at the start of your code and 3 at the end
Collapse
andybullet profile image
AndyBullet Author

I put the link.

Collapse
adam_cyclones profile image
Adam Crockett • Edited

It might be that prompt('Choose a username:'); returns truthfully always?