Číslo a:
Součet: ?

   
for (i = 0; i < a.length; i++) {
    soucet = soucet + parseInt(a.substr(i, 1));
}