DEV Community

AndyBullet
AndyBullet

Posted on

1

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?

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more