Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Acceptable Password I by freeman_lex
import assert from "assert";
function isAcceptablePassword(password: string): boolean {
const cond1 = password.length > 6;
return cond1;
}
console.log("Example:");
console.log(isAcceptablePassword("short"));
// These "asserts" are used for self-checking
assert.strictEqual(isAcceptablePassword("short"), false);
assert.strictEqual(isAcceptablePassword("muchlonger"), true);
assert.strictEqual(isAcceptablePassword("ashort"), false);
console.log("Coding complete? Click 'Check Solution' to earn rewards!");
May 2, 2023