letposition=(str)=>{constupper=str.trim().toUpperCase().split('');letarr=[];upper.map(l=>(/^[a-z]+$/i.test(l))&&arr.push(l.charCodeAt(0)-64).toString())returnarr.join("");}position("The sunset sets at twelve o' clock.");
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.
JavaScript