freecodecamp-algorithms
My solutions to the JavaScript Algorithms on freeCodeCamp.
- 20
- JavaScript
- 21 mo ago
My solutions to the JavaScript Algorithms on freeCodeCamp.
Create a function that sums two arguments together. If only one argument is provided, then return a function that expects one argument and returns the sum.
Return an English translated sentence of the passed binary string. The binary string will be space separated.
Convert the characters &, <, >, " (double quote), and ' (apostrophe), in a string to their corresponding HTML entities.
Check if the predicate (second argument) is truthy on all elements of a collection (first argument).
According to Kepler's Third Law, the orbital period T of two point masses orbiting each other in a circular or elliptic orbit is:
Flatten a nested array. You must account for varying levels of nesting.
Given a positive integer num, return the sum of all odd Fibonacci numbers that are less than or equal to num.
Return true if the passed string looks like a valid US phone number.