Improve your javascript skills with Codewars javascript challenge. To join Codewars go to www.codewars.com/r/f-qT9g
Steps I took to complete this Javascript challenge:
1) Create an array of all the letters in the english alphabet
2) Determine whether the string is lower or upper case and change the alphabet array accordingly.
3) Find the index of the first letter of the input array in the alphabet.
4) Cut out a piece of the array starting from the index of the first item from the input array and ending on the last character of the input array.
5) Determine which letter is missing by comparing the two arrays together.
To complete this challenge I used:
toUpperCase(): https://goo.gl/bVT4Mm
join(): https://goo.gl/izEhp4
split(): https://goo.gl/D251f6
indexOf(): https://goo.gl/t5MFSJ
splice(): https://goo.gl/g3Jvoo
for loop: https://goo.gl/TDLBs8
length: https://goo.gl/65SSJj
Download
0 formats
No download links available.
Codewars javascript - Find the missing letter | NatokHD