Tag Code Challenge

Code Challenge: Simple Mode

Here’s another fun code challenge from Coderbyte: Using the JavaScript language, have the function SimpleMode(arr) take the array of numbers stored in arr and return the number that appears most frequently (the mode). For example: if arr contains [10, 4,…

Read More

Code Challenge: Greatest Common Factor

This week’s JavaScript code challenge again comes from Coderbyte: Using the JavaScript language, have the function Division(num1,num2) take both parameters being passed and return the Greatest Common Factor. That is, return the greatest number that evenly goes into both numbers…

Read More

Code Challenge: Triple Double

Each week, I offer up a JavaScript code challenge. Want more? You can find others here. Again, this week’s code challenge comes from my trusty favorite, Coderbyte: Using the JavaScript language, have the function TripleDouble(num1,num2) take both parameters being passed,…

Read More

Code Challenge: Consecutive

Each week, I offer up a JavaScript code challenge. Want more? You can find others here. This week’s code challenge comes again from Coderbyte: Using the JavaScript language, have the function Consecutive(arr) take the array of integers stored in arr…

Read More

Code Challenge: Additive Persistence

Each week, I offer up a JavaScript code challenge. Want more? You can find others here. First, I’ll admit that I’m a day overdue on this code challenge. Last week, I was on vacation in Austin, TX, and I’m still…

Read More

Code Challenge: Number Search

Each week, I offer up a JavaScript code challenge. Want more? You can find others here. This week’s code challenge again comes from Coderbyte. It’s quite a bit easier and shorter than last week mainly because I was slammed with…

Read More

Code Challenge: Blackjack

Each week, I offer up a JavaScript code challenge. Want more? You can find others here. This week’s challenge comes from Coderbyte, which has been a fun resource. The instructions are a bit of a doozy: Have the function BlackjackHighest(strArr) take…

Read More

Code Challenge: String Reduction

Each week, I offer up a JavaScript code challenge. Want more? You can find others here. This week’s code challenge comes from Coderbyte. Here are the basic instructions: Have the function `StringReduction(str)` take the `str` parameter being passed and return…

Read More

Code Challenge: Recurring Letters

This is the fourth post in a series of at least 10 JavaScript code challenges. You can find the others here. This one was a bit of a doozy! I originally read this challenge three weeks ago and gave it a…

Read More

Code Challenge: Reverse, Reverse!

This is the third post in a series of at least 10 code challenges. You can find the others here. Compared to the previous two challenges, today’s challenge was short and straightforward. Challenge: Given a string, the function reverseString should return the same…

Read More