Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
I just hate the fact that I can't use arrow functions anymore solution in Creative category for Acceptable Password I by danielsan
/** I just hate the fact that I can't use arrow functions for this */
const checkIfThisSuspeciousPwdHasAtLeast7Chars = _ => !!_[0b110]
function isAcceptablePassword(password: string): boolean {
return checkIfThisSuspeciousPwdHasAtLeast7Chars(password);
}
console.log('Example:');
console.log(isAcceptablePassword('short'));
import assert from "assert";
// These "asserts" are used for self-checking
assert.equal(isAcceptablePassword('short'), false);
assert.equal(isAcceptablePassword('muchlonger'), true);
assert.equal(isAcceptablePassword('ashort'), false);
console.log("Coding complete? Click 'Check' to earn cool rewards!");
April 23, 2020
Comments: