Hey, I've been experimenting with a method to multiply an array of numbers. Here's what I tried:
var arr = [1, 2, 3];
alert(arr.join('*') * 1);
However, it keeps giving me a result of NaN
.
Are there any alternative methods for achieving this calculation?