I'm curious about the answer that was taken by Dagg Nabbit at SO here: Convert HH:MM:SS string to seconds only in javascript
var seconds = (+a[0]) * 60 * 60 + (+a[1]) * 60 + (+a[2]);
Right,
var seconds = (a[0]) * 60 * 60 + (a[1]) * 60 + (a[2]);
doesnt work as expected - it doesn't calculate the number of seconds. Why?