Sat Aug 07 2021 11:22:12 GMT+0000 (Coordinated Universal Time)
Saved by [deleted user]
function validateCode(code) { function isValidLength (code) { return code.length > 5; } function containsHash () { return code.includes('#') } return isValidLength() && containsHash(); } const isValidCode = validateCode('some#Code');
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments