DEV Community

tatsuo fukuchi profile picture

tatsuo fukuchi

404 bio not found

Joined Joined onΒ  github website twitter website

All 17 comments

A program of calc sum βž• with new and smart code in JavaScript πŸ”₯.

Hi! It's a "closure" matter, and you can do it more simply. ...

Solving "Arguments Optional" / freeCodeCamp Algorithm Challenges

As you use Number.isInteger() , you'll miss float numbers. Yo...

Solving "Everything Be True" / freeCodeCamp Algorithm Challenges

checkedArr.includes(false) ? false : true is equivalent t...

Solving "Sum All Primes" / freeCodeCamp Algorithm Challenges

You can do it faster to use Math.sqrt(n) instead of n/2. : ...

Solving "Sum All Odd Fibonacci Numbers" / freeCodeCamp Algorithm Challenges

Oh yes, I think so! How do you like this?: const memoizer =...

Solving "Sum All Odd Fibonacci Numbers" / freeCodeCamp Algorithm Challenges

You can do it faster to use Generator / Iterator, not Array: ...

Solving "Pig Latin" / freeCodeCamp Algorithm Challenges

You can make it simpler to use the "early-return" technique. ...

Solving "Spinal Tap Case" / freeCodeCamp Algorithm Challenges

How do you like this? const spinalCase = s => s.repla...

Solving "Seek and Destroy" / freeCodeCamp Algorithm Challenges

Another way: const destroyer = (xs, ...ys) => xs.filte...

Solving "Wherefore art thou" / freeCodeCamp Algorithm Challenges

Another way: const whatIsInAName = (objs, obj) => objs...

Solving "Sum All Numbers in a Range" / freeCodeCamp Algorithm Challenges

On your solution, you may change the original array destructi...

Solving "Chunky Monkey" / freeCodeCamp Algorithm Challenges

Another way: const chunkArrayInGroups = (arr, size) => ...

Solving "Where do I Belong" / freeCodeCamp Algorithm Challenges

Another way: const getIndexToIns = (arr, num) => arr ...

Solving "Mutations" / freeCodeCamp Algorithm Challenges

Another way: const mutation = ( [ first, second ] ) => ...

FizzBuzz JavaScript

Here another way to make it easier to modify it : const FIZ...

Reverse an Array Without .reverse() in JavaScript

Another one: array.reduce((acc, e)=>[e, ...acc], []) ...

Using JavaScript Promises for Non-Async Control Flow?

I love to use these functions for the function composition....

loading...