# javascript

## Cloning an Array with JavaScript: Part 2

I wrote a post about cloning arrays, and a piece of code I had found in a code base I was working on. After writing that post, a couple of readers brought some alternative methods, and concerns to my attention. That is what I will cover in this post...

Link## Cloning an Array with JavaScript

Earlier today I was perusing a code base that I am working in, and found a function named cloneArray. This function looked something like this...

Link## Learning JavaScript with Project Euler #3

The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143...

Link## Dynamically Rendering React Components with Array.Map

If you have run in to a situation where you need to dynamically render a component for each item in a list of items, you have no idea where to start, and don't know what `Array.map()` does, keep reading...

Link## Learning JavaScript with Project Euler #2

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be...

Link## Learning JavaScript with Project Euler

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of...

Link## JavaScript Snack #1: Arrow Functions

This is the first installment of what is going to be an ongoing series. We will cover small, digestible JavaScript problems or concepts that take just a few minutes to go through...

Link