constevenVsOdd=str=>{constevens=str.split('').filter(x=>x%2==0).reduce((a,b)=>a+parseInt(b),0)constodds=str.split('').filter(x=>x%2!=0).reduce((a,b)=>a+parseInt(b),0)returnevens>odds?"Even is greater than Odd":evens==odds?"Even and Odd are the same":"Odd is greater than Even"}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Some JavaScript