You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JS | Value vs Reference - 2 Rabbits and a Magic Hat
JS | Value vs Reference
This exercise is not mandatory, however it may be a good example for understanding the "variables created in functions" and concept of "passing objects (object, arrays and functions) by reference" in JavaScript.
JS | Value vs Reference - 2 Rabbits and a Magic Hat
JS | Value vs Reference
This exercise is not mandatory, however it may be a good example for understanding the "variables created in functions" and concept of "passing objects (object, arrays and functions) by reference" in JavaScript.
Using the reduce() method provided in the code below, add the age of each person object from the people array and console.log the ageTotal which should equal the sum of all the people's age.