netlify-serverless-functions-demo
👨💻 Learn how to use netlify serverless functions to hide secret/API keys in a frontend JavaScript web application.
- 7
- JavaScript
- MIT
- 4 y ago
👨💻 Learn how to use netlify serverless functions to hide secret/API keys in a frontend JavaScript web application.
Here are the codes that I wrote while doing the "JavaScript Algorithms and Data Structures" course on FreeCodeCamp.com. Hope it will help you get through any problem you might face while solving the problems. PEACE :)
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.
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:
Return an English translated sentence of the passed binary string. The binary string will be space separated.
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.