<script> var esto= [1, 6, 9, 4]; var sum=(new Function("return " +esto.join('+')))(); alert(sum); </script>