Let’s practice
reverseArray
which would reverse array and return it as a result,
. Then do the same but usign forEach
.summation(n)
that takes a single argument n, and computes the sum of all integers up to n starting from 0:
summation(3) -> 1 + 2 + 3 = 6
summation(7) -> 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28
Build a “TO-DO list”. That’s it :) Should be possible to add Todo items and remove then. Simple but nice to use.