Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] House Password by Ansam
"use strict";
function housePassword(data){
return data.length >= 10 &&
data.search(/[A-Z]/) >=0 &&
data.search(/[a-z]/) >=0 &&
data.search(/\d/) >=0;
}
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");
}
Aug. 7, 2017