From 8a69d994a7eb082f6c6d64186eca8ec63a3d8639 Mon Sep 17 00:00:00 2001 From: "Krzysztof G." <60067306+gikf@users.noreply.github.com> Date: Sun, 22 Dec 2024 18:40:20 +0100 Subject: [PATCH] fix(curriculum): add function's parameter information in Password Generator (#57682) --- .../lab-password-generator/66f53dc2c5bd6a11d6c3282f.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/lab-password-generator/66f53dc2c5bd6a11d6c3282f.md b/curriculum/challenges/english/25-front-end-development/lab-password-generator/66f53dc2c5bd6a11d6c3282f.md index 4e476e95f4a..99d14778b06 100644 --- a/curriculum/challenges/english/25-front-end-development/lab-password-generator/66f53dc2c5bd6a11d6c3282f.md +++ b/curriculum/challenges/english/25-front-end-development/lab-password-generator/66f53dc2c5bd6a11d6c3282f.md @@ -13,8 +13,8 @@ In this lab, you'll practice using functions by building a random password gener **User Stories:** -1. You should create a function called `generatePassword` that takes a parameter. You can name the parameter whatever you like. -2. Your function should return a string which represents a randomly generated password. You should use the following string and different `Math` methods to help you return a new string with random characters in it: `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()`. +1. You should create a function called `generatePassword` that takes a parameter, indicating the length of generated password. You can name the parameter whatever you like. +2. Your function should return a string which represents a randomly generated password. You should use the following string and different `Math` methods to help you return a new string with random characters in it: `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()`. 3. You should define a variable called `password` and assign it the result of calling the `generatePassword` function with a numeric argument that represents the desired password length. 4. You should have a `console.log` that logs the message `"Generated password:"` followed by the `password` variable.