Thanks for the heads up. I did not get the challenge right and posted a wrong answer. Here is the correct one, I hope :)
missingL = input => { const alphabet = [ "a","b","c","d","e","f","g", "h","i","j","k","l","m","n", "o","p","q","r","s","t","u", "v","w","x","y","z" ]; const alphabetUp = alphabet.map(item => item.toUpperCase()); input[0] == input[0].toUpperCase() ? alphabet.splice(0, 26, ...alphabetUp) : alphabet; const compareArray = alphabet.slice( alphabet.indexOf(input[0]), alphabet.indexOf(alphabet[alphabet.indexOf(input[0]) + input.length]) ); return compareArray.filter(item => !input.includes(item)); };
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
Thanks for the heads up. I did not get the challenge right and posted a wrong answer. Here is the correct one, I hope :)