DEV Community

loading...

JavaScript problem

andybullet profile image AndyBullet ・1 min read

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

Discussion

pic
Editor guide
Collapse
adam_cyclones profile image
Adam Crockett

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

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