I'm a pharmacist who spends a fraction of my free time with programming.
Check out the stuff I've made at https://yuvlian.github.io/.
const
output
= "what's your perfect first date?"
.split( ""
).map( parseInt
).filter (a =>
a).reduce( (a, b) => a +
b)
.toString ().split(""
).reverse( )
.join("")
;console .log
( output
)