JavaScript-Algorithms
JavaScript Algorithms with Explantations from basic to advanced
- 4
- JavaScript
- 7 y ago
JavaScript Algorithms with Explantations from basic to advanced
Here is a digital card from Bob Ziroll's react dev course solo project on freecodecamp.org.
Design a cash register drawer function checkCashRegister() that accepts purchase price as the first argument (price), payment as the second argument (cash), and cash-in-drawer (cid) as the third argument.
Return true if the passed string looks like a valid US phone number.
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.
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.
Convert the characters &, <, >, " (double quote), and ' (apostrophe), in a string to their corresponding HTML entities.
Markdown previewer with React 📖 || freeCodeCamp (Front End Development Libraries Challenge)
Calculator using React 🔢 || freeCodeCamp (Front End Development Libraries Challenge)