Skip to main content

Posts

Featured

Codewars JavaScript Kata #2

This kata asks you to find the missing letter in an array of letters. For example if the array provided is ["M", "N", "P"], the output should equal "O". This was tougher than I though. The way I chose to solve it, which may not be the most efficient is by creating an array of letters in the alphabet. Then I would take the array provided as an argument and for each item in the array, check to see what the index is in the array of letters I made. Add 1 to that number and check to see if the next index in the argument array was equal to the next index in the letter array. If they were the same, do nothing. If they are different, output that letter because that's the missing one. First pass worked on lower case letters, because that's my letters array was done in lowercase. I suppose another way to do it would be to do a hash, but I think an array would work better. The way I fixed the problem is by checking first to see if the array

Latest Posts

Codewars - solving an easy JavaScript Kata

Rails Webpacker

Using Fetch

How to make a Chatbot in React

The anatomy of a function

Debugging with Pry

Making a todo app in JavaScript

How to deploy a React app to your hosting account.

Differences between ES5 and ES6

Code Challenge and Learning Rspec