var a = 1;
var b = 05;
var c = 10;
var d = 14;
var e = 7;
I need to add zero to each variable if it is a single number.
Something like:
for each([a, b, c, d, e] as el){
if el.length == 1){el = '0' + el;}
}
Result should be 01
05
10
14
07
Any help?