sum() Example 3
sum() Example 3
This example defines an array [6,4,9,10,8] and then prints out the
sum of the string versions of the numbers. The String()
function
converts any value to a string (though it obviously won't use the two other
arguments).