(num=>{ const sum=arr=>arr.reduce((t,n)=>+n+t,0); num=num.toString().split(''); return sum(num.slice(0,3))===sum(num.slice(3)); })(385916);