Javascript » Use Conditionals

LearnJS »CodePen.io

👉 User Story:

As a user
Given a CodePen url (see below)
I should be asked for my password
  and
    if the password is "friend"
      I should receive a "welcome" message
    else
      I should receive a "you shall not pass" message

You can try things out directly on this pen:
https://codepen.io/marcopeg/pen/gOYKrYX?editors=0010


✅ Proposed Solution:

Don't run this unless you gave a very good effort to solve it yourself!


🤓 Resources:


💬 Comments & New Ideas:

results matching ""

    No results matching ""