V School's Todo API Documentation
The Todo API is something we built to help students create web applications with a completely open API to use. Have fun! And don't get too crazy on it...
The baseUrl is: https://api.vschool.io/
The Todo API is something we built to help students create web applications with a completely open API to use. Have fun! And don't get too crazy on it...
The baseUrl is: https://api.vschool.io/
Use the built-in .map() method on arrays to solve all of these problems Feel free to copy and paste the function and tests in this assignment. 1) Make an array of numbers that are doubles of the first array function doubleNumbers(arr){ // your code here } console.log(doubleNumbers([2, 5,
Use the built-in array method .filter() to solve all of these problems Feel free to copy and paste the function and tests in this assignment. 1) Given an array of numbers, return a new array that has only the numbers that are 5 or greater. function fiveAndGreaterOnly(arr) { // your code
Use the built-in .sort() method on arrays to solve all of these problems Feel free to copy and paste the function and tests in this assignment. 1) Sort an array from smallest number to largest function leastToGreatest(arr) { // your code here } console.log(leastToGreatest([1, 3, 5, 2, 90, 20]
Use the built-in .reduce() method on arrays to solve all of these problems Feel free to copy and paste the code for easy testing. 1) Turn an array of numbers into a total of all the numbers function total(arr) { // your code here } console.log(total([1,2,3])); // 6