Practice What You Learned

Get Setup

  • Go to repl.it and create a fresh repl
  • Choose a nodejs repl
  • In your primary js file complete the following
/*
Challenge: addList

=======Difficulty: Basic

Prompt:

- Write a function called addList that accepts any quantity of numbers as arguments,
  adds them together and returns the resulting sum.
- Assume all parameters will be numbers. <=========
- If called with no arguments, return 0 (zero).

Examples:

addList(1) //=> 1
addList(1,50,1.23) //=> 52.23
addList(7,-12) //=> -5

*/

// Your solution for 01-addList here:

Complete all work in your REPL.it

Copyright © Per Scholas 2023