Číslo a:
Otočené: ?

   
for (i = a.length - 1; i >= 0; i--) {
  otocene = otocene + a.substr(i, 1);   
}