After figuring out how to use arrays and turning them into strings, I now need to do floating point operations with the variable. To first I created an array: var = array1 = []; var = array1value = 0; then, I add tack in numbers and operations when the right button is pressed, satisfying the corresponding if statement. if ( condition_1 = true){ array1.push(1); } if ( condition_2 = true){ array1.push(2); } if ( condition_3 = true){ array1.push(3); } //(you get the idea) if ( condition_A = true){ array1.push("+"); } if ( condition_B = true){ array1.push("-"); } if ( condition_C = true){ array1.push("*"); } if ( condition_D = true){ array1.push("/"); } (did you notice I had to add quotes to the operators? otherwise I get errors.) Anyway, then I proceed to take the data inside the array, and 'compress' it into one string of characters. if (array1.length === 1){ array1value = array1[0].toString(); } if (array1.length === 2){ array1value = array1[0].toString() + array1[1].toString(); } if (array1.length === 3){ array1value = array1[0].toString() + array1[1].toString() + array1[2].toString(); } etc. you can see the pattern (also can anyone tell me how to convert all this redundant code into a nice for loop? I couldn't figure it out, so I just did the above all the way up to array.length === 13) Then finally, I make this appear as text on a output, and I can see the final value after pressing buttons and stuff, say, 534+902/21. So I would expect that if I save this in a new variable, that it will perform the math operation: except the new variable just returns the same exact thing: 534+902/21 var newVariable = array1value So I tried adding and subtracting some numbers from array1value, and the output of the newVariable is an error. I believe this is because although as text, array1value appears as 534+902/21, in actuality, it is *really* 534 + "+" + 902 + "/" +21. or maybe as "534+902/21." How do I force javascript to convert this back to 534+902/21? Also, please don't tell me to google it, or find java tutorials, I have already searched for half the day and don't want to watch 2 hour long videos on programming.