DIY Task Create a password

You can now use your new JavaScript skills to create a web page that asks the user to enter a password. This web page will protect the web page you built in Mission 1. Your JavaScript program should include:

  • A function
  • Variables
  • An if statement
  • An alert
  • A text box
  • A hyperlink

If you’re stuck, copy this piece of code and then change the design and password to make it your own. Don’t forget to save your file in your Coding folder and call it password.html

See the Pen qZLOQN by Walker Books UK (@walkerbooks) on CodePen.