Write a function named linkedNumbersSum
that receives one parameter
value
- representing a numbernext
- representing the next node in the linked list (or null if there is no next node)The function should return the sum of all the numbers in the linked list.
node
=We have a linked list with 3 nodes. The sum of the values of the nodes is 6.