June 22nd, 2024
What's missing in this code?
// We want our users to enter a special character ($),
// but we want them to put it
// within the password — not at the beginning or end.
// Can you help us do this?
const ourPasswords = [
'password$',
'y$es123',
'wo$rd',
'picture1$',
];
const strongOnes = ourPasswords.
(
(password) => /
/.test(password)
);
Type or select from these options