0

I tried this:

http://jsfiddle.net/CG8gx/1/

for(var i = 0x00; i <= 0x88; i++){
    i = i.toString();
    if (i.length === 1) { 
        i = "0" + i;
    }
    // console.log(i.length);
    console.log(i);
    // console.log(decodeURIComponent("%" + i));
}

but toString() will give the decimal representation. So the above code is broken.

employee-0
  • 1,023
  • 1
  • 9
  • 19

1 Answers1

3

you can try this

for(var i = 0x00; i <= 0x88; i++){
    i = "0x" + i.toString(16);

    console.log(i);

}

will show

0x0
0x1
0x2
...
Luan Castro
  • 1,184
  • 7
  • 14