Just practicing JS because I want to do some webapps in the future.
The range() function needs to return an array containing the numbers from start up to stop, and the sum() function takes an numeric array and returns the sum of it.
I’m playing with the arguments object in JS to change some behaviors, which is very cool. And today I just realized (again!) that in Python we already have something similar like *args an **kwargs, but I didn’t try it yet.
So here is the code:
and here you can check it online (if this interests you):