svelte-assignment-problem-conditionals Svelte Themes

Svelte Assignment Problem Conditionals

Assignment

Solve these tasks

  1. Add a password input field and save the user input in a variable. Output "Too short" if the password is shorter than 5 characters and "Too long" if it's longer than 10.
  2. Output the password in a paragraph tag if it's between these boundaries.
  3. Add a button and let the user add the passwords to an array.
  4. Output the array values (= passwords) in a unordered list (ul tag).
  5. Bonus: If a password is clicked, remove it from the list.

Top categories

Loading Svelte Themes