Is it possible to created an array and join the contents into an equation?

I mean having something like:

var equation = [‘1’, ‘*’, ‘3’];

equation.join(’’);

and winding up with the answer - which in this case would be 3?

Is there a way to make something like this work or am I think about it all wrong and need to go back to the drawing board?