Since "a234" does have a length of 4 the firstifstatement will run, which means that theelse ifis not executed at all. And even if that was not the case, once you return a value the method stops executing, so even if you didn't use if/else if statements the method would stop onc...
about Radix until you pointed. I will surely head to MDN to discover more about this and implement it in the project. As for spacing, you are right; I did not notice the inconsistency until now. Perhaps I should make use of a code editor to spot the spacing differences in the future....