I would need to determin the Big O of this short code:
var iterations = 0;
function operation(num){
    iterations++;
    if (num == 0) return 1;
    return operation(Math.floor((num / 10) * 2));
}
var result = operation(1000);
alert('Result = ' + result + ', number of iterations = ' + iterations);
I came up with something around O(log(logN)) but I'm not sure. Would you please help me a bit?
 
     
    