Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Clear&Readable solution in Clear category for [old] House Password by SaintDron
"use strict";
const housePassword = (data) => data.length >= 10 && /[a-z]/.test(data)
&& /[A-Z]/.test(data)
&& /[0-9]/.test(data);
var assert = require('assert');
if (!global.is_checking) {
assert.equal(housePassword("A1213pokl"), false, "1st example");
assert.equal(housePassword("bAse730onE4"), true, "2nd example");
assert.equal(housePassword("asasasasasasasaas"), false, "3rd example");
assert.equal(housePassword("QWERTYqwerty"), false, "4th example");
assert.equal(housePassword("123456123456"), false, "5th example");
assert.equal(housePassword("QwErTy911poqqqq"), true, "6th example");
console.log("Coding complete? Click 'Check' to review your tests and earn cool rewards!");
}
Jan. 20, 2019