DEV Community

AndyBullet
AndyBullet

Posted on

JavaScript problem

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

Top comments (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

I put the link.

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€ • Edited

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