V School | Better Humans, Better Outcomes

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//todo[/] (Where is your actual name, i.e.: https://api.vschool.io/jonsmith/todo)

Array Map Exercises

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,

Array Filter Exercises

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

Array Sort Exercises

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]

Array Reduce Exercises

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

V School | Better Humans, Better Outcomes © 2026