© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Zaur Hamidov
full-stack developer
you can do it like this too:
let solution = (s)=> !!Number(s) && (s.length == 4 || s.length == 6)