# Array help!

**URL:** <https://forum.kirupa.com/t/array-help/312371>\
**Category:** Uncategorized\
**Created:** [August 1, 2010, 4:44pm UTC](https://forum.kirupa.com/t/array-help/312371 "2010-08-01T16:44:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rasclerhys](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@rasclerhys](https://forum.kirupa.com/u/rasclerhys)\
**Post date:** [August 1, 2010, 4:44pm UTC](https://forum.kirupa.com/t/array-help/312371/1 "2010-08-01T16:44:57Z")

</div>

Hi  
I have a noob question about arrays.  
I have two arrays:  
var array1 = new Array();  
array1[0] = “1”;  
array1[1] = “7”;

I know that these are in string format, but this is necessary for the whole code (i think!) but I want to be add these to values together, to get the value of 8, however if you do:  
var answer = array1[0] + array1[1];  
Then it just joins the 2 values to give 17, however if you times them, it treats it like a number.  
Is it possible to add them to get the value of 8 in another way without having to remove the speech marks from the array value???  
Thanks  
Rhys
