# Sum Up an Array of Numbers by [kirupa](https://www.kirupa.com/about/whatiskirupa.htm) | filed under [Coding Exercises](https://www.kirupa.com/codingexercises/index.htm) Here is a fun challenge. We have an array of numbers and want to add them up. Let us say that our array looks as follows: ```js let numbers = [4, 10, 5, 7, 13, 20]; ``` If we had to add these numbers up manually, we would get **59**. We are going to be adding these numbers using JavaScript, and we will show the results is via a web page that will load in our browser. This page won't show anything in the browser, but it will show something when we bring up the [console](https://www.kirupa.com/html5/console.htm): ![](https://www.kirupa.com/codingexercises/images/sum_array_values_output.png) What the console will show is the result of all of the numbers in our array being summed up. More precisely, it should say `**Sum of array values is: 59**`. #### Hint: Some Learning Resources and Getting Help The following tutorials may provide some helpful tips and techniques to help you with this exercise: [Console Logging Basics](https://www.kirupa.com/html5/console.htm), [If/Else Statements](https://www.kirupa.com/html5/conditional_statements_if_else_switch_javascript.htm),[Looping in JavaScript](https://www.kirupa.com/html5/loops_in_javascript.htm), [Numbers](https://www.kirupa.com/html5/numbers_in_javascript.htm), [Visual Introduction to Arrays](https://www.kirupa.com/javascript/visual_guide_arrays.htm), [Mapping, Reducing, and Filtering Things in an Array](https://www.kirupa.com/html5/arrays_map_filter_reduce.htm), [Combining Strings and Variables](https://www.kirupa.com/javascript/combining_strings_variables.htm) We want to make this a fun learning activity. If you are stuck and need help, please [ask on the forums](https://forum.kirupa.com). Please explain your problem in detail and one of the many helpful forum members will help you out. ## Getting Your Badge Once you have completed this exercise, you have earned the awesome bragworthy privilege of adding the following badge to [your collection](https://forum.kirupa.com/badges/): ![](https://www.kirupa.com/codingexercises/images/sum_array_values.png) To claim it, head over to the forums and respond in the [Sum Up an Array of Numbers topic](https://forum.kirupa.com/t/sum-up-an-array-of-numbers-frontend-coding-exercise/653697/4). **Be sure to include a link to your solution or insert a copy of your HTML/CSS/JS in the body of the message**. Once you have created your topic, Kirupa will give you a virtual high-five and ensure this badge is added to your list of assigned badges. ## One Possible Solution If you want to see ***one*** way of solving this, check out Kirupa's video below: There are many solutions possible, so don't worry if your working solution looks different. If it is different, do share it on the forums and the community as a whole will benefit from your creative solution!