JS
challenger
Home
JavaScript Basics
conditionals
Check Password Strength
Check Password Strength
Complete the code so that the strength variable is set to 'Strong' if the password is at least 8 characters long, or 'Weak' otherwise. Use if...else.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console