Melvin Cayas | Blog
Melvin's Blog Logo

Code Challenge #4: Barking Dog Method with Java

Welcome back! I'm currently learning Java, so this exercise is from the course I'm taking. This one is simple, but I thought it was worth writing about since I'm learning a new language! The Challenge We have a dog that likes to bark. We need to wake...

Code Challenge #4: Barking Dog Method with Java

Code Challenge #3: Two Sum from LeetCode

Welcome back! Today's challenge is the Two Sum problem from LeetCode. I did this with JavaScript, but I may redo this in the future since I'm currently learning Java! The Challenge Given an array of integers nums and an integer target, return the ind...

Code Challenge #3: Two Sum from LeetCode

Code Challenge #2: Reversing Words with 5 or More Characters in a String

Welcome back to my Code Challenge series! Today's challenge is from the Web Developer Bootcamp Discord group, passed on from Codewars. I hope you enjoy it as much as I did! The Challenge Write a function that takes in a string of one or more words an...

Code Challenge #2: Reversing Words with 5 or More Characters in a String

Code Challenge #1: Removing Duplicate Words from a String

Welcome to my new series, Code Challenge! In this series, I'll be doing challenges that I randomly see on blogs or Discord groups. I enjoy doing them because I learn so much! I found today's challenge from the Web Developer Bootcamp Discord group. Th...

Code Challenge #1: Removing Duplicate Words from a String

Code Fix #3: Toggling Classes with querySelectorAll

Welcome back! In this article, I'll be going over toggling classes with querySelectorAll. Background The person was given the HTML and CSS below: <!-- index.html --> <ul> <li>Hello</li> <li class="highlight">Hello</li> <li>Hello</li> <li clas...

Code Fix #3: Toggling Classes with querySelectorAll

Code Fix #2: Getting the Last Element in an Array

Welcome to the next post in my Code Fix series! In this article, I'll be going over someone's code to get the last element in an array. The Task The person was tasked to make a function called lastElement which takes an array and returns the last ele...

Code Fix #2: Getting the Last Element in an Array